[HTML] The Head Tag

As the name suggests, the head stands for the “header tag”. That means it contains all those elements which give the title to a webpage. It contains various other important elements of the webpage.

For instance, the head element could give the default font size, style and colour which applies to each and every element around the webpage, provided that the other element will not contain its own definition that will overlap the head element definition. Hence, making the head definition useless for that particular element.

Didn’t get that? Don’t worry. Read this article

Undoubtedly, <Head> element is always posted/used inside the <HTML>….</HTML> tags.

 

<HTML>
<HEAD>
</HEAD>

<!--YOUR REST OF THE CODE HERE-->


</HTML>

 

the following HTML elements can go inside the Head tags:

  1. Meta tag.
  2. Link tag
  3. Title tag.
  4. style tag.
  5. Script tag.
  6. NoScript tag.

There are also various other tags that can be used inside HEAD element, but as you are a beginner so I am not mentioning it now to avoid complications.

Just like HTML element, Head element also have opening and closing tags.

<HTML>

<HEAD>


</HEAD>



</HTML>