HTML <title> Element
The <title> element defines the title of an HTML document. The title is commonly displayed in the browser tab and may also be used for bookmarks, browser history, search engine results, and other references to the page.
Syntax
<head>
<title>HTML Tutorial</title>
</head>
Attributes
The <title> element supports the global HTML attributes. It does not have any element-specific attributes.
Example
This example places the <title> element inside the document's <head> section to provide a descriptive title for the page.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Beginner HTML Tutorial</title>
</head>
<body>
<h1>Learn HTML</h1>
</body>
</html>
Usage Notes
The <title> element belongs inside the document's <head> element. An HTML document should contain no more than one <title> element.
The <title> element contains text only. HTML elements placed inside it are not interpreted as markup.
Choose a title that clearly identifies the page and distinguishes it from other pages on the website. Search engines may use the document title when presenting a page in search results, although they can choose different text when appropriate.
Accessibility
Every page should have a clear and descriptive document title. Screen readers can announce the page title when a document loads, and meaningful titles help users identify pages when navigating browser tabs, history, or multiple open windows.
Browser Support
Baseline: Widely available indicates a feature has been supported by core browsers for at least 30 months. At this stage, the feature is considered stable and safe for most websites to use without needing to worry about compatibility issues or fallbacks, as it is supported by the vast majority of users' devices and browser versions.
For detailed browser compatibility information, see Can I Use: HTML <title> Element .
Related Elements
The <title> element is closely related to other document metadata elements, including <head>, <meta>, <link>, and <base>.
Specifications
The <title> element is defined in the WHATWG HTML Living Standard .
