Sub topic 4
Writing titles that are unique and descriptive
This chapter assumes you know basic HTML structure, what a title tag does, and what a search results page looks like. It covers how to write a title that identifies one page and describes it accurately.
What makes a title good
A title has two jobs. It tells a search engine what the page is about, and it tells a person scanning results whether to click. Both jobs depend on two properties:
- Unique. No other page on your site shares the title. Identical titles make pages look like duplicates and force the searcher to guess which one they want.
- Descriptive. The title names the specific subject of the page, using the words a searcher would use.
A title like "Home" or "Products" is unique only by luck and describes almost nothing. A title like "Trail Running Shoes for Beginners | Example Store" is specific and distinct from "Road Running Shoes for Marathons | Example Store".
A working pattern
Most good titles follow this shape:
- The primary topic of the page, first.
- A qualifier that separates it from similar pages, such as audience, year, or product type.
- The brand name, last and short.
Putting the topic first keeps it visible if the title is truncated. Search results display only the first part of a long title, and the cut-off depends on pixel width, not a fixed character count. A rough working target is about 50 to 60 characters, but treat that as a guide, not a rule.
<title>Trail Running Shoes for Beginners | Example Store</title>Common errors
| Error | Example | Fix |
|---|---|---|
| Same title on every page | "Example Store" | Build the title from the page's own data |
| Vague title | "Products" | Name the specific product or topic |
| Keyword stuffing | "Shoes, running shoes, cheap shoes, best shoes" | Write one natural phrase |
| Title differs from the page | Title promises "Size Guide", page is a product listing | Match the title to the visible `h1` and content |
| Brand first, topic last | "Example Store - Trail Running Shoes for Beginners" | Move the topic to the front |
Paginated and filtered pages often cause duplicate titles. Page 2 of a category should not repeat page 1's title exactly. Adding a distinguishing detail such as "Page 2" or the active filter keeps them separate.
Checking for duplicates
You can find repeated titles in a list of your pages. This script counts how many pages share each title.
from collections import defaultdict
pages = {
"/shoes/trail-running": "Trail Running Shoes for Beginners | Example Store",
"/shoes/road-running": "Road Running Shoes for Marathons | Example Store",
"/shoes/trail-running?page=2": "Trail Running Shoes for Beginners | Example Store",
}
by_title = defaultdict(list)
for path, title in pages.items():
by_title[title].append(path)
for title, paths in by_title.items():
if len(paths) > 1:
print(f"Duplicate title: {title}")
for path in paths:
print(f" {path}")Running it reports that the first and third paths share a title. In a real audit you would feed it a crawl export instead of a hand-written dictionary.
Exercise
A site's blog posts all use the title "Blog | Example Store". Name two problems this causes and describe a better title for a post about choosing hiking socks.
Show answer
The titles are not unique, so search engines and searchers cannot tell the posts apart, and they are not descriptive, so they say nothing about each post's subject. A better title is "How to Choose Hiking Socks for Long Trails | Example Store", which puts the topic first, is specific to the post, and keeps the brand short at the end.