Title Tag: Page Titles

Learn about the `<title>` tag, what it does, SEO, best practices.

Introduction

<title> sets the page title! Important for SEO and usability!

What You Will Learn

  • <title> tag does
  • Where it appears
  • SEO best practices
  • Good vs bad titles

What is <title>?

<title>:

  • Goes in <head>
  • Shows in browser tab
  • Shows in bookmarks
  • Used search engine results
  • Very important for SEO!

Basic Usage

<head>
    <title>My Awesome Website</title>
</head>

Where Title Appears

  1. Browser tab
  2. Bookmarks when you bookmark page
  3. Search results as main link text
  4. History
  5. Social media when shared (sometimes)

SEO Best Practices

✅ Keep it **50-60 characters long ✅ Unique for page ✅ Include primary keywords ✅ Make it descriptive ✅ Start with most important info ✅ Use brand at end

Good Examples

<title>Learn HTML - Complete Tutorial | VSNEXOS Careers</title>
<title>Best Coffee Shops in New York | Joe's Coffee Guide</title>
<title>2024 Web Developer Salary Report | TechJobs</title>

Bad Examples

<!-- Too short!
<title>Home</title>

<!-- Too long! -->
<title>This is an extremely long page title that goes way beyond 60 characters and will get cut off in search results!</title>

<!-- Not descriptive! -->
<title>Page 1</title>

<!-- Keyword stuffing! -->
<title>HTML HTML5 Learn HTML Tutorial HTML Course HTML Training</title>

Character Limit

Google shows about 50-60 characters. Keep it concise!

Best Practices

✅ Each page has a unique title ✅ Keep 50-60 chars ✅ Include your brand at end ✅ Make it descriptive and enticing ✅ Don't keyword stuff ✅ Use separators like | or -

Common Mistakes

❌ No title at all ❌ Same title on all pages ❌ Too long ❌ Too short ❌ Not descriptive

FAQs

**Q: title important for SEO? A: Yes! Very!

**Q: can I have multiple <title> tags? A: No, only one per page!

**Q: title affect ranking? A: Yes, it's a major factor!

Related Topics

  • Head Tag
  • Meta Tags

Summary

<title> tag is super important for SEO and usability! Make unique, descriptive, 50-60 chars!

Next Topic

Now let's learn about Meta Tags!