The head tag in HTML

What does the head tag do in HTML?

An HTML page consists of head and body elements that contain all of the page elements and data.
The head element contains information about the HTML document that is used by browsers and search engine crawlers, but is not displayed to website visitors.
The head tag contains elements that simplify interaction with the data on the page when it is loaded in the browser.

Composition of the HEAD element

In HTML tag head placed these elements: meta, title, base, link, script, style, basefont, bgsound, noscript.

    <meta charset="UTF-8">
    <base href=""> <link>
    <title>The head tag in HTML</title> </head>
  <body> <h2>What does the head tag in HTML do?</h2>
    An HTML page consists of HEAD and BODY elements, in which all elements and page data are placed. 
where to use the head tag

The filling of the HEAD tag

The head element implements:

  • Inserting meta tags that describe how the page will look in the browser
  • Including external files: JavaScript, CSS
  • Links to plugins: pickdate, carousel
  • Connecting frameworks: enyo, clanc
  • Links to libraries: angularjs, jquery

Displaying the content of the head element comes down to showing the information contained in the title tag, which displays the title of the page in a web browser.

The purpose of the head tag is to provide information about the document itself.

Leave a Comment

Your email address will not be published.