- Element of
- HTML Document Structure
- What does
<head> HTML Tagdo?
- 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
The purpose of the document
<head> is to provide information about the document itself.
<meta>, especially keywords, a description, and Open Graph details.
rel=links`, especially canonical URLs, links to RSS Feeds, and links to translations.
Presentational and Functional Information
- Doctype declaration
- Character Set declaration
- Link(s) to CSS
- Link to a Favicon
- An “HTML5 shiv”
It was once very common to place all JS into the
<body> element whenever possible.
Browser Support for head