W3cubDocs

/HTML

<title>

The <title> 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

Browser compatibility

Feature Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 1 Yes 1 1 Yes 1
Feature Android webview Chrome for Android Edge mobile Firefox for Android IE mobile Opera Android iOS Safari
Basic support Yes Yes Yes 4 Yes Yes Yes

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title