Element of
HTML Document Structure
What does <head> 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.

Browser Support for head