|
| Version | -//W3C//DTD XHTML 1.0 Transitional//EN
|
|---|
| Element | head |
|---|
| Purpose | document head |
|---|
| Description | This element encloses information about a document.
It is unordered information
and not part of the document's body.
Note that you only have one head (and one body).
For example:
<head>
<title>Basic HTML Demonstration Document</title>
<link Rev="made" Href="mailto:john@december.com" />
<meta Name="description" Content="Demonstrates basic features of HTML" />
<meta Name="keywords" Content="HTML, hypertext, basics, learning, reference" />
</head>
|
|---|
| Start tag | Required <head>
|
|---|
| Attributes | | Name | Type | Default | Comment |
|---|
| dir | ( ltr | rtl ) | #IMPLIED | direction for weak/neutral text | | id | ID | #IMPLIED | document-wide unique id | | lang | NMTOKEN | #IMPLIED | language code (backwards compatible); language code as RFC3066 | | profile | CDATA | #IMPLIED | Uniform Resource Identifier as per RFC2396; a Uniform Resource Locator (URL) is a URI; named dictionary of meta info | | xml:lang | NMTOKEN | #IMPLIED | language code (as per XML 1.0 spec); language code as RFC3066
|
|
|---|
| Content | ( ( script | style | meta | link | object | isindex )* , (( title , ( script | style | meta | link | object | isindex )* , ( base , ( script | style |
meta | link | object | isindex )* )?) | ( base , ( script | style | meta | link | object | isindex )* , ( title , ( script | style | meta | link | object
| isindex )* ))))
|
|---|
| End tag | Required </head>
|
|---|
| Referenced in | html
|
|---|
|