HTML <title> Tag

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The <title> HTML element is used for declaring the title of the HTML document.
Since the contents described in the <title> are displayed as the top title bar of your Web browser, the title of the search results and the title when put in the 'favourites' lists (bookmark), it is necessary to choose a title that briefly reflects the contents of the page.

Properties

Permitted Parents
A <head> element that contains no other <title> element
Content
Text
Start/End Tags
Start tag: required, End tag: required

Example

<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>

Attributes

None

Global Attributes

The <title> tag also supports the Global Attributes in HTML5

Event Attributes

The <title> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <title> tag.

Desktop
Edge Chrome Firefox Opera Safari
1211151
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
18414114.4

Last updated by CSSPortal on: 30th September 2023