title
Summary
Defines the title of the current document.
Overview Table
Examples
This example uses the title element to specify a title for the document.
<!doctype html>
<html>
<head>
<title>WebPlatform.org - Your Web, documented</title>
</head>
</html>
This example uses the title element to provide the current page title as well as the category and the title of the website.
<!doctype html>
<html>
<head>
<title>title • html • WebPlatform.org</title>
</head>
</html>
Usage
You can only have one title element per page. The content of this element should make sense out of context, and is commonly used in the browser title bar, and labels for favorites/bookmarks. It is usually also displayed as a title on search engine results pages.
The title element varies from the h1 element in that the heading elements can be contextual: they do not need to make sense out-of-context.
It is read by screen readers as soon as the web page has finished loading and is the first information assistive technologies receive. It can be used to convey information immediately to users using such tools, like the success or error of a form submission.
Titles of sub pages should provide the most specific information on front (“front-loading”), for example a website might first provide the title of the current page, then the name of the category and the name of the complete website.
Notes
It can only contain text and any contained tags are not interpreted.
There are rare cases where the title is allowed to be omitted. This is the case when a higher-level protocol provides title information, like the subject line of an e-mail.
Related specifications
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]