HTML <title> Tag
In this tutorial, we will learn about title tag in HTML with the help of examples.
<title> Tag
Title tag <title> is used to define the title of the document.
The title must be text-only, and it is shown in the browser's title bar.
The <title> tag is used inside the <head> tag.
We can use only one <title> tag inside an HTML document.
Note : A good title is must required for better SEO (Search Engine Optimization).
Syntax
<title>..........</title>
Example
<!DOCTYPE html>
<html>
<head>
<title>title tag</title>
</head>
<body>
<p>In this document, we have use the title tag.</p>
</body>
</html>
Output
In this document, we have use the title tag.
Global Attribute
Title Tag support all the global attributes of HTML.
Event Attribute
Title Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of <title> tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML <tr>
Tag.