HTML 4 head Tag

Also see HTML5 <head> Tag.

This page contains information about the HTML 4 version of this element. For a more up to date version, see HTML5 <head> Tag.


The HTML head tag is used for indicating the head section of the HTML document.

The head can contain other HTML tags that provide information about the document such as title, description, keywords etc. Most of this information is not displayed in the browser (although the title usually appears in the browser's title bar) but can be useful for search engines etc. The head tag is placed between the <html> and the <body> tags.

Example

Attributes

Attributes specific to this tag:
AttributeDescription
profileSpecifies the URI/URL of one or more meta data profiles.
Other Attributes:
AttributeDescription
langLanguage code
dirSpecifies the direction of the text

HTML5 Tags

The information on this page is based on HTML version 4.01. Most modern browsers now support HTML5, which is the next version of HTML after HTML 4.01.

See HTML5 <head> Tag for the HTML5 version of the above element.

Also see this list of HTML 5 tags for the latest version of HTML.