CSS Portal

HTML <title> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <title> tag is an essential element in HTML that defines the title of a web page. This title is displayed in the browser’s title bar or tab, giving users a clear indication of the content or purpose of the page. It also plays a crucial role in search engine optimization (SEO), as search engines use the content of the <title> tag as the clickable headline in search results.

The <title> tag is placed within the <head> section of an HTML document and is a required element in HTML documents. Its content should be concise, descriptive, and accurately reflect the page’s content, typically ranging from 50 to 60 characters for optimal display in search results. The title should avoid excessive keywords or redundant information to maintain clarity and improve readability.

Since the <title> tag is not visible within the body of the page itself, it serves as a metadata element that helps browsers, search engines, and users quickly identify and navigate to the page. Properly crafted titles enhance usability, accessibility, and discoverability, making the <title> tag a small but vital component of effective web design.

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 information will show you the current browser support for the HTML <title> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!