HTML Head Element | HTML Header Tag | Head Element Tag

HTML The Head Element


The HTML <head> element contains the following element:

<title> ,<meta> ,<style> ,<link> ,<script> ,<base>

HTML <head> Element

<head> tag  is the opening and closing tag and placed between <html> and <body> tag.

The opening head tag and closing head tag and all the content between the two make up the HTML head element.

The <head> element is like a header for the web pages it contains information about the page like the title of the page script tags to include some javascript files link to include some style sheet.

<title> element

The title for this web page is set to head element another commonly used tag inside the head.

 

 

<meta> element

The meta tag provides additional information about the web page.

for example :

the name of the author keywords for the web page character set and so on.

--create a meta tag for character set like utf-8.

--create a meta tag for keywords so named keywords and content

 

<style> element

It is an another important tag used inside the head element and creating a style element inside the head.

--it is used to change the color, background color, image,background image,font size,and more.

<link> element

It is an another important tag is used inside the head element and creating a link tag inside the head.

--it is commonly used to include external stylesheet .

--It is creating a new folder and the name is CSS and inside the css , create a new file and the name is stylesheet.css .

--set to rel attribute to stylesheet and set to href attribute to the path this default dot css file.

 

<script> element

It is an another important tag is used inside the head is the script tag.

--it is commonly used to include external javascript files.

-- write the type attribute inside the script tag and set it to the text ,password , email ,numbaer etc.