HTML Head - W3school | Tutorialspoint

Meta-information is the head element that contains general information about a document. It means “information about”.

Information Inside the Head Element

A browser does not display the elements inside the head element. Only a few tags are valid inside the head section, according to the HTML standard. They are <base>, <meta>, <title>, <link>, <style> and <script>.

Following Invalid construct should be looked:

Example


<html>
<head>
Document header related tags
</head>

<body>
Document body related tags
</body>
</html>


The browser has two options in this case:

  • It is inside a head element that is why you have to display the text.
  • It is inside a head element that is why you have to hide the text.

Inside a head element if you put an HTML element like <h1> or <p>, even it is not valid, most browsers will display it.

We don’ think so that browsers will forgive you for errors like this. Others do.