The title tag in HTML is used to define the title of a webpage. This title is displayed in the browser’s title bar or on the tab when a user views the webpage.
It also serves as the title when a page is bookmarked or shared. The <title>
tag is placed inside the <head>
section of an HTML document and is critical for both user experience and SEO (Search Engine Optimization)
Example:
In this example, “My Awesome Webpage” is what will appear on the browser tab.
Key Points:
- Display in Browser: The title appears in the browser tab, helping users identify the page.
- SEO: Search engines use the title tag to understand the page’s content, making it essential for ranking.
- Bookmarking: When a user bookmarks the page, the title tag becomes the default name for the bookmark.
The <title>
tag is unique in that it should only appear once within the <head>
section of an HTML document.