There are several possible tags that can be used in the <head> section of a HTML document. These are:
The <title> tag is required in all HTML documents and it defines the title of the document.
The <title> element:
- defines a title in the browser toolbar
- provides a title for the page when it is added to favorites
- displays a title for the page in search-engine results
The <style> tag is used to define style information for an HTML document.
Inside the <style> element you specify how HTML elements should render in a browser.
Each HTML document can contain multiple <style> tags.
The <base> tag specifies the base URL/target for all relative URLs in a document.
There can be at maximum one <base> element in a document, and it must be inside the <head> element.
The <link> tag defines the relationship between a document and an external resource.
The <link> tag is most used to link to style sheets.
Metadata is data (information) about data.
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
The <script> element either contains scripting statements, or it points to an external script file through the src attribute.
The <noscript> tag defines an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support script.
The <noscript> element can be used in both <head> and <body>.
When used inside the <head> element: <noscript> must contain <link>, <style>, and <meta> elements.
The content inside the <noscript> element will be displayed if scripts are not supported, or are disabled in the user’s browser.