title tag (XHTML 1.1)
document titleThe title tag does exactly what the name indicates: It defines the title of the specific page. In most browsers, the text of the title tag is shown in the caption bar of the browser, and even more importantly: A lot of search engines takes the content of your title tag into consideration when indexing your page. It's extremely easy to use:
<title>This is the title of my webpage</title>
The title tag should always be within the head section of your document.
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 | ||
| 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