HTML <head> Section
The HTML head section separates metadata information from actual content of the document in the body section. It is created by the <head> tag, which is coded inside the html element at the top of the HTML structure. The head section must always contain a page title, which appears in the title bar of the web browser window. The head section may also contain other metadata tags.
Content of HTML Head Section
Content Model of <head> Tag
The expected content of the <head> tag consists of HTML elements categorized as metadata content elements. (In the HTML tag list, click on an HTML tag to see the content model of that element.)
The content of the head element is expected to be metadata content with some restrictions. Therefore, the following metadata elements can be coded between the starting <head> tag and the ending </head> tag:
HTML Tag | Content of <head>...</head> Element |
---|---|
<title> required | a single required title element with the title that is to appear in the browser's address bar |
<base/> | an optional base element |
<command/> | optional command element(s) |
<link/> | optional link element(s) |
<meta/> | optional meta element(s) |
<noscript> | optional noscript element(s) |
<script> | optional script element(s) |
<style> | optional style element(s) |
<rdf:RDF> | optional RDF element(s) |
<!--comments--> | possibly interspersed with HTML comments |