Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <title> tag


May 05, 2021 HTML Reference Manual


Table of contents


HTML

The label defines the title of the HTML document, which usually reflects the subject matter of the page, and the browser uses the title in a special way, usually on the title bar or status bar of the browser window.

Define a title for your HTML document:

<html>

<head>
<title>HTML Reference</title>
</head>

<body>
Document content ...
</body>

</html>

Try it out . . .

Browser support

HTML <title> tag HTML <title> tag HTML <title> tag HTML <title> tag HTML <title> tag

All major browsers support the hashtag.


Label definition and instructions for use

The label defines the title of the document and is required in all HTML documents.

The elements:

  • Define the title in the browser toolbar
  • Provides the title when the page is added to your favorites
  • The title of the page that appears in the search engine results

Tips and comments

Note: There cannot be more than one element in an HTML document.

Tip: If you miss the label, the document is invalid as HTML.

Tip: When a document is added to a user's list of links or a list of favorites or bookmarks, the contents of the label become the default name for the document link.


The difference between HTML 4.01 and HTML5

No.


Global properties

Labels support the global properties of HTML.


Related articles

HTML tutorial: HTML header

HTML DOM Reference Manual: HTML DOM Title Object