HTML title Tag
The HTML <title> tag is used to define the title of the document, displayed in the browser’s title bar or tab. It’s a required element within the <head> section of an HTML document.
Syntax:
<title> Title name </title>
Important Points
- The title tag is used to give the title to the webpage and it should be the text only.
- You can NOT have more than one <title> element in an HTML document.
- It is recommended to choose a more detailed and descriptive title rather than opting for a brief one- or two-word title.
- A page’s title, essential for Search Engine Optimization (SEO), impacts how search engines rank pages in search results.
- Keep titles concise within 50-60 characters for optimal search engine display and user readability.
- Avoid using just a list of keywords in titles to prevent negative SEO consequences.
- Ensure titles accurately reflect webpage content to enhance user understanding and search engine optimization.
HTML Title Tag Examples
Example: In this example, the HTML <title> tag sets the title displayed in the browser’s title bar or tab. It’s essential for identifying the webpage and improving search engine optimization (SEO).
<!DOCTYPE html>
<html>
<head>
<!-- Define Title Here-->
<title>title Tag</title>
</head>
<body>
<h1>w3wiki</h1>
<h2>
<title> Tag
</h2>
<p>
Welcome to w3wiki!
</p>
</body>
</html>
Output:
Supported Browser
The browser supported by title tag are listed below:
Contact Us