HTML <title> Tag

Description:

The <title> tag is used for declaring the title of the HTML document.

The title is usually displayed in the browser's title bar (at the top). It is also typically used by search engines (to display the page title in the search results page) and browsers "favorites" lists.

 

Specific Attributes:

None

Other Attributes:

Attribute Definition
lang Specifies a language code for the content in an element.
dir

Specifies the text direction for the content in an element.
Possible Values:

  • rtl  (Right to Left)
  • ltr  (Left to Right)

Example Code:

<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>