head tag (HTML 4.01)
document headThe head tag offers information about the page, not much by it self, but by the child tags available to it. For instance, the title tag, which provides the document title and the meta tag, which can provide extra information about the document like keywords, author information etc. You should consider this a non-visible information area, since none of the major browsers will render information found within the head tags directly on the page - for the visible part of the page, see the body tag.
The head portion of the page is also where you can define CSS and script (e.g. JavaScript) code, using the style and script tag respectively.
Attributes
| Attribute | Deprecated | Required | Description |
|---|---|---|---|
| class | space-separated list of classes | ||
| dir | direction for weak/neutral text | ||
| id | document-wide unique id | ||
| lang | language code | ||
| profile | named dictionary of meta info | ||
| style | associated style info | ||
| title | advisory title |
Events
| Event | Description |
|---|---|
| onclick | a pointer button was clicked |
| ondblclick | a pointer button was double clicked |
| onkeydown | a key was pressed down |
| onkeypress | a key was pressed and released |
| onkeyup | a key was released |
| onmousedown | a pointer button was pressed down |
| onmousemove | a pointer was moved within |
| onmouseout | a pointer was moved away |
| onmouseover | a pointer was moved onto |
| onmouseup | a pointer button was released |
© htmlpedia.net 2008 - 2012