HTML Header & Head Tag

The HTML Header, often just referred to as the < head > tag is part of all standard web pages. It is the first thing in the code, and happens before the < head > tag. Unlike the < head > tag, the < head > tag focuses on content that is not displayed on the page, but instead is associated with the page. This includes many aspects of SEO meta data including the title tag, description tag and some schema. It is important that the information in the < head > tag remains the same before and after JavaScript is executed, to avoid confusing search engine bots. This will mean that any JavaScript used to populate information in the HTML Header must be pre-rendered on the server, before it is sent to the bot, or ideally, before it is sent to the bot and the browser.

Related Terms:

Canonical Tag