Advertisement

Advertisement


HTML Title

HTML Title Tag

The <title> tag is required in all HTML documents and it defines the title of the document and display on the top of Web Page.

Title tag are important for usability, SEO, and social sharing. It meant to be an accurate and concise description of a page's content. Your title should be below 60 character because Google search engine displays only first 50–60 characters of a title tag.

Title Tag


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>

HTML Title Attribute

The title attribute is used to give tooltip in an element. The information gives some details about the element and will be shown as a tooltip, when the cursor moves over the element.


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> HTML Title Attribute </title>
</head>
<body>
<p><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
<p title="Free Web tutorials">CodeRepublics.com</p>
</body>
</html>

Output

HTML Title Attribute Example

WHO was founded in 1948.

CodeRepublics.com


Browser Support

Element
Microsoft Edge browser.png Edge
Chrome browser.png Chrome
Firefox browser.png Firefox
Opera browser.png Opera
safari browser.png Safari
<title>
Yes
Yes
Yes
Yes
Yes








Become a Patron!

Note: If the updated content is not visible to you please refresh the cookies by pressing CTRL + Shift + R.