The head of an HTML document is an unordered collection of information about the document. It requires the <TITLE> element between <HEAD> and </HEAD> elements thus :

<TITLE> Introduction to HTML </TITLE>

The <HEAD> and </HEAD> elements do not directly affect the look of the document when rendered.

The following elements are related to the head element. While not directly affecting the look of the document when rendered (apart from the <STYLE> element Style Sheet declarations), they do provide (if used) important information to the HTML user agent.

<BASE> - Allows base address of HTML document to be specified
<BASEFONT> - Allows setting of a single font to use throughout the document
<ISINDEX>- Allows keyword searching of the document
<LINK>- Indicate relationships between documents
<META> - Specifies document information useable by server/clients
<NEXTID>- Creates unique document identifiers
<STYLE> - Used by browsers that support use of style sheets to specify styles within the document
<TITLE>- Specifies the title of the document

NOTE : The Title element is the only element described here that is required as part of the Head of a HTML document for conformance to any HTML standard.

CLASS="Style Sheet class name"
The CLASS attribute is used to specify the <HEAD> as using a particular style sheet class. See the Style Sheets topic for more information.

ID="Unique element identifier"
The ID attribute can be used to either reference a unique style sheet identifier, or to provide a unique name for the <HEAD> element for scripting purposes. Any <HEAD> element with an ID attribute can be directly manipulated in script by referencing its ID attribute, rather than working through the All collection to determine the element. See the Scripting introduction topic for more information.

Consistent with Internet Explorer 4.0's Dynamic HTML object model, the <HEAD> element supports various properties and methods. In its role as a document structure element, it supports no events.

<HEAD...> Properties
Of the Standard Dynamic HTML properties, <HEAD> supports className, document, id, isTextEdit, lang, parentElement, sourceIndex, tagName and title. See the Standard Dynamic HTML properties topic for details.

<HEAD...> Methods
Of the Standard Dynamic HTML methods, <HEAD> supports contains, getAttribute, removeAttribute and setAttribute. See the Standard Dynamic HTML methods topic for details.