HTML Page Title

πŸ“˜ What is an HTML Page Title?

The HTML page title is the text shown in the browser tab, search engine results, and when bookmarking a page. It’s set using the <title> tag inside the <head> element of your HTML document.

>>β€œYour page title is your site’s first impression β€” make it count.” πŸ’‘

🧱 Basic Syntax

HTML Title Example

<!DOCTYPE html>
<html>
  <head>
    <title>My First Web Page</title>
  </head>
  <body>
    <h1>Welcome!</h1>
  </body>
</html>

The text inside the <title> tag appears:

  • πŸ“Œ On the browser tab
  • πŸ” In search engine results as the page title
  • ⭐ When a user bookmarks or favorites the page

πŸ“ˆ SEO Importance of the Title

The title is critical for SEO (Search Engine Optimization). A good title should:

  • βœ… Clearly describe the content of the page
  • βœ… Be unique for each page
  • βœ… Include relevant keywords

Note

⚠️ Keep your title tag under 60 characters so it displays properly in Google search results.

🎯 Best Practices

  • πŸ’¬ Write human-friendly and descriptive titles
  • πŸ”‘ Use 1–2 important keywords naturally
  • 🏷️ Avoid keyword stuffing
  • πŸ“š Make each page title unique across your website

πŸ“Œ Example Titles

Page TypeGood Title
HomepageMySite - Learn Web Development
Blog Post10 Tips to Master CSS Grid - MySite
Product PageOrganic Green Tea | Free Shipping - TeaWorld

πŸ§ͺ Testing the Title

After updating the <title> tag:

  • πŸ”„ Reload your page in the browser
  • 🧼 Clear cache if changes aren’t reflected
  • πŸ•΅οΈβ€β™€οΈ Check browser tab and source code

πŸ”— More Resources

>>β€œEvery great website starts with a meaningful title.” 🎯