html tutorial - Title tag in HTML - html5 - html code - html form

Learn html - html tutorial - title tag - html examples - html programs
Definition of <title>tag:
- The <title> tag is used to define the title of the HTML document.
- To show the title of the page in browser title bar the <title> tag is used.
- The <title> tag belongs to meta content category.
- The <title> tag supports Global Attributes.

Syntax for <title> tag :
<title>Content</title>
Sample coding for <title> tag:
Tryit
<!DOCTYPE html>
<html>
<head>
<title>The title of the document</title>
</head>
<body>
<p>
Welcome to Wikitechy.
</p>
</body>
</html>
Code Explanation for <title>tag:

- <title> tag is used to display the title of the html document.
Sample Output for <title>tag:

- The term “The title of the document” shown in the top of the browser window.
Browser Support for <title> tag:
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes |
Tips and Notes:
- <title>tag cannot appears more than one time in a document.
- If <title>not presents in a document that will not be validate as HTML.
- <title>tag display the title in the search-engine result.