Head Elements

Head Elements is a type of container that holds machine-readable information (metadata) about a web page.

But before this, I will teach you the structure of HTML.

<!DOCTYPE html>

<head lang="en">

<head>
</head>

<body>
</body>

</html>

This is the structure of html. Inside head elements, we put machine-readable information (metadata) about a web page. This data was not directly shown in your webpage. And why I saided "not directly" you will know after practicing this and also after this topics.

Inside body elements and we said elements becuase, like to form compound we need elements so like this to form web page we need elements. So The body element in HTML acts as the main container for all the visible content of a web page.

<element> called opening tag.

</element> called closing tag.


There are exactly 7 valid elements that can be placed directly between the <head>HERE</head> tag:

  1. <title></title>

  2. <meta>

  3. <link>

  4. <style>

  5. <script>

  6. <nonscript>

  7. <base>