The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.
This article is Ready to Use.
title of the current document.
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>
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.
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.
|HTML 5.1||W3C Working Draft|
|HTML 5||W3C Recommendation|
|HTML 4.01||W3C Recommendation|
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]