The <title> tag is an important HTML element used to define the title of a web page. It appears in the browser tab and is essential for SEO and user experience.
<title> tag specifies the name of the webpage that appears in the browser tab, search engine results, and bookmarks.The <title> tag is placed inside the <head> section of an HTML document. It provides a short and meaningful description of the page’s content.
<!DOCTYPE html>
<html>
<head>
<title>My First Website</title>
</head>
<body>
<p>Welcome to my website!</p>
</body>
</html>
In this example, "My First Website" will appear in the browser tab.
| Reason | Description |
|---|---|
| User Experience | Helps users identify the page easily in browser tabs |
| SEO | Search engines use the title to understand page content |
| Accessibility | Screen readers announce the page title first |
| Bookmarks | Used as the default name when bookmarking a page |
The <title> tag plays a crucial role in usability, SEO, and accessibility. Every HTML page should include a clear and descriptive title.
A well-written title helps users and search engines understand your page better.