Document head
The head element is used at the beginning of your HTML. It contains descriptive (meta) information about the document, as well as style rules and scripts. This element must contain exactly one title element.
<head
dir="ltr | rtl"
lang="language code"
profile="url"
>
</head>
Key:
‡ = Required attribute
** = Transitional only
Explanation of attributes
dir: used to set the direction of the text in combination with the language set in the lang attribute. The available values are "ltr" (left to right) and "rtl" (right to left), with the default value being "ltr".
lang: used to indicate the language being used in the text contained within the element. The value of this attribute takes on the form of the ISO standard lanuage abbreviations found in RFC 3066. A list of these codes can be found on the ISO language codes page.
profile: this attribute is used to specify a url that contains information about the meta-data that can be used within the document and what the data might mean.
Event handlers
No event handlers are defined for this element.
Compatibility
| Test | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|---|
| Basic element support | |
|
|
|
|
|
| Attribute: dir | |
|
|
|
|
|
| Attribute: lang | |
|
|
? | |
? |
| Attribute: profile | |
|
|
|
|
|
Key:
The browser icons are explained in the below list:
= Microsoft Internet Explorer 6+
= Netscape Communicator 4
= Mozilla and Netscape Navigator 6+
= Opera 7+
= MSN TV (aka. WebTV)
= Konqueror 3.0+