title tag (XHTML 1.1)

document title

Topics

The 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
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012