NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<title> (Document Title)


This element encloses the title of an HTML document. It must occur within a document's <head> element and must be present in all valid documents. Meaningful titles are very important because they are used for bookmarking a page and might be used by search engines attempting to index the document.

Standard Syntax


<title
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code">

</title>

Attributes Defined by Internet Explorer


onlayoutcomplete, onreadystatechange

Example


<head>

<title>
Big Company: Products: Super Widget</title>
</head>

Compatibility


HTML 2, 3.2, 4, 4.01, SHTML 1.0, 1.1, Basic
Internet Explorer 2, 3, 4, 5, 5.5, 6
Netscape 1, 2, 3, 4, 4.5-4.8, 6, 7
Opera 4-7

Notes


The title should be the first element found in the head.

Meaningful names should provide information about the document. A poor title would be something like "My Home Page," whereas a better title would be "Joe Smith Home."

Browsers can be extremely sensitive to the <title> tag. If the title element is malformed or not closed, the page might not even render in the browser.

The HTML 2.0 and 3.2 specifications define no attributes for the title element.

(X)HTML Elements
CSS Properties
Previous: thead Next: tr
< Home | About | Chapters | Examples | Errata | Reference | Site Map >