The HTML <title> element defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text, and any contained tags are ignored.

Content categories Metadata content.
Permitted content Text that is not inter-element whitespace
Tag omission Both opening and closing tags are required. Note that leaving off </title> should cause the browser to ignore the rest of the page
Permitted parents A <head> element that contains no other <title> element.
Permitted ARIA roles None
DOM interface HTMLTitleElement

Attributes

This element only includes the global attributes.

Example

<title>Awesome page title</title>

Specifications

Specification Status Comment
HTML Living Standard
The definition of '<title>' in that specification.
Living Standard  
HTML5
The definition of '<title>' in that specification.
Recommendation  
HTML 4.01 Specification
The definition of '<title>' in that specification.
Recommendation  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support1 Yes11 Yes1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic support Yes Yes Yes4 Yes Yes Yes

Document Tags and Contributors

 Last updated by: snuggs,