<head> HTML Tag

Sharing is caring!

Element of
Why HTML5 Changed Document Structure: Learn How The New Tags Should Be Used
What does <head> HTML Tag do?
The <head> element contains information about an HTML document that is used by browsers and web crawlers but is not displayed to website visitors.

What to put in the <head>

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

Semantic Information

Presentational and Functional Information

Placement of JavaScript

It was once very common to place all JS into the <head>, however that is no longer recommended practice because it can slow down page load. Today, the typical recommendation is to place JavaScript at the end of the <body> element whenever possible.

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for head