Little Web Hut

HTML 4.01 and XHTML 1.0 Reference: <title> Tag

HTML <title> Tag
Syntax This element uses separate opening and closing tags.
<title>...</title>
Usage The <title> tag is a required tag that is used to give a title to the web page. The <title> tag is located in the head section. The title is often displayed at the top of the browser window or as the title for a browser tab. It is frequently used as the title for bookmarks or favorites. The title may also be used by search engines when displaying search results.

<title> tag example.
<head>
 <title>Sample Title</title>
</head>
Content Model The <title> element can contain Text between its opening and closing tags.

<title> Tag Attribute Summary
Required Tag Specific Core Focus Events Language
    id1     dir lang xml:lang1
Notes: 1. XHTML only.

<title> Tag Attributes
Attribute Description
idThe id attribute assigns a unique name to a tag. This allows style sheets or scripts to reference the tag. See id Example

Note: XHTML only.
dirThe dir attribute tells the browser whether the text should be displayed from left-to-right or right-to-left. It does not reverse the direction of the characters, like the <bdo> tag does, but it can help the browser to determine if the text should be aligned on the left side or the right side. See dir Example
langThe lang attribute specifies a language. This attribute can help the browser to correctly display text. This attribute can also be useful for braille translation software, speech synthesizers, dictionary definitions, etc. See lang Example
xml:langThe xml:lang attribute specifies a language for XHTML documents. This attribute can help the browser to correctly display text. This attribute can also be useful for braille translation software, speech synthesizers, dictionary definitions, etc. See xml:lang Example

Note: XHTML only.