English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Directory

HTML: <title> tag

The HTML <title> tag contains the document title, which is displayed at the top of the browser window or used as a bookmark name when adding the web page to the 'favorites'. This tag is also commonly referred to as the <title> element.

Online Example

Define the title for your HTML document:

!doctype html
<html>
<head>
<meta charset="UTF-8">
<title>HTML5Example by www.oldtoolbag.com</title>
</head>
<body>
</body>
</html>
Test to see ‹/›
In this HTML5We created a title of "HTML"5Title of the example document

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <title> tag.

Definition and Usage

<title> tag defines the document title, which is required in all HTML documents.

<title> Element:

  • Define the title in the browser toolbar

  • Title provided when the page is added to favorites

  • Page title displayed in search engine results

Tips and Notes

Note:An HTML document cannot have more than one <title> element.

Tip:If you omit the <title> tag, the document is invalid as HTML.

You must include the <title> tag within the <head> tag of the document.

If you do not include the <title> tag within the <head> tag, you will receive the following error during HTML validation: 'The element header is missing the required example of the title sub-element.'

Global Attributes

Support of <title> tag Global Attributes of HTML.

Related Articles

HTML Tutorial:HTML Header