title

< html‎ | elements
Jump to: navigation, search

title

This article is Almost Ready.


W3C Recommendation

Summary

Defines the title of the current document.


Overview Table

DOM Interface HTMLTitleElement

Examples

This example uses the title element to specify a title for the document.

HTML

<!doctype html>
<html>
<head>
<title>WebPlatform.org - Your Web, documented</title>
</head>
</html>

Usage

You can only have one title element on your page. This tag is mandatory. If you omit it the document will not validate as HTML

Notes

  • defines a title in the browser toolbar
  • provides a title for the page when it is added to favorites
  • displays a title for the page in search-engine results

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

Specification Status Related Changes
HTML 4.01 Recommendation
HTML 5 Candidate Recommendation

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related articles

HTML


















































… further results

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]