Summary -
In this topic, we described about the <title> tag along with detailed example.
The <title> tag is mandatory tag in all HTML documents. <title> tag defines the title of the document. The <title> tag defines the title which will display on the browser toolbar.
The title information can be used to display it on search engine results as well. The title information displayed when the page added to favorites. There are no differences between HTML 4.01 and HTML5 for <title> tag.
Syntax -
<title>.... </title>
Rules -
Only one <title> can be there for one HTML document.
Note! If <title> tag is omitted, then the document will not validate as HTML.
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>title of the documents here</title>
</head>
<body>
Content of the HTML document....
</body>
</html>