HTML Tutorial



HTML title tag


HTML <title> Tag

The <title> tag is used to define the title of the HTML document. This title is displayed in the browser's title bar or tab. It is placed inside the <head> section of the HTML document and helps identify the page's content when multiple tabs are open.


Purpose of <title> Tag

The <title> tag helps users and search engines understand what the webpage is about. It also plays a significant role in SEO (Search Engine Optimization).


Syntax

<head>
  <title>Page Title Here</title>
</head>
  

Example

Hereโ€™s a full HTML example with the <title> tag:

<!DOCTYPE html>
<html>
  <head>
    <title>My First Webpage</title>
  </head>
  <body>
    <h1>Welcome to My Website</h1>
    <p>This is the main content of the page.</p>
  </body>
</html>
  

Tips

  • Keep the title short and descriptive.
  • Use relevant keywords for better SEO.
  • Avoid using special characters unnecessarily.

Conclusion

The <title> tag is a crucial part of any HTML document. Though it doesnโ€™t appear on the visible page, it defines the title shown on browser tabs and is indexed by search engines. A good title improves user experience and search visibility.


๐ŸŒŸ Enjoyed Learning with Us?

Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!

Leave a Google Review