Sub topic 4
Writing titles that are unique and descriptive
This chapter assumes you know basic HTML structure (head and body), how URLs and query strings work, and what a search results page looks like. It also assumes you have read the previous chapter on what the title tag is and where it sits in the head. Here the focus is on writing titles well, and on the mistakes that cause weak or duplicate titles at scale.
What a good title does
A title has two readers. The search engine uses it as a strong hint about what the page is about. A person scanning results uses it to decide whether to click. A good title serves both with the same words.
Three properties matter most:
- Descriptive. It says what this page contains, in the words a searcher would recognize.
- Unique. No other page on your site has the same title. Identical titles make pages look interchangeable, and they make browser tabs, bookmarks, and history entries hard to tell apart.
- Accurate. It matches the visible content. A title that promises something the page does not deliver tends to be rewritten, and it increases bounces.
Anatomy of a title
Most titles follow a simple pattern: the specific page topic first, then an optional qualifier, then the site name last.
<title>Trail Running Shoes for Beginners | Example Store</title>Here "Trail Running Shoes for Beginners" is the page-specific part, and "Example Store" is the brand suffix. Putting the specific part first keeps it visible when the title is cut off. Separators such as |, -, or – are a style choice. Pick one and use it everywhere.
| Part | Purpose | Example |
|---|---|---|
| Primary topic | Names what the page is about | Trail Running Shoes |
| Qualifier | Narrows the topic or audience | for Beginners |
| Brand suffix | Identifies the site | Example Store |
Length: what actually happens
Search engines do not enforce a character limit. They truncate by pixel width, and the width depends on the letters used. A title full of "W" and "M" takes more room than one full of "i" and "l". Desktop results typically show roughly 50 to 60 characters before cutting a title with an ellipsis, but treat that as a rule of thumb, not a contract.
Practical consequences:
- Put the most important words first.
- Keep the whole title short enough that the topic survives truncation. Roughly 60 characters is a safe working target.
- Do not panic over a longer title. Text past the visible cutoff can still be read by the search engine, so a longer title is not an error. It is just less likely to be seen in full.
- Check real results rather than trusting a character counter alone.
Writing for uniqueness
Uniqueness comes from the part of the title that differs between pages. On a store with thousands of products, the product name, model, or category has to carry that difference. A brand suffix cannot, because it is the same everywhere.
Compare these two sets of titles for three pages:
| Weak (duplicate or vague) | Strong (unique and descriptive) | Column | Column |
|---|---|---|---|
| Shoes \ | Example Store | Trail Running Shoes for Beginners \ | Example Store |
| Shoes \ | Example Store | Waterproof Hiking Boots, Men's \ | Example Store |
| Shoes \ | Example Store | Kids' School Shoes, Sizes 10 to 3 \ | Example Store |
The weak column gives three different pages the same title. A person looking at three open tabs cannot tell them apart, and a search engine has little to separate them with.
Matching the title to the page
The title and the main heading (<h1>) do not need to be identical, but they should clearly describe the same subject. A common, safe approach is to write the <h1> for people already on the page and the title for people deciding whether to arrive. The title can carry a little extra context, such as the brand.
<head>
<title>Trail Running Shoes for Beginners | Example Store</title>
</head>
<body>
<h1>Trail Running Shoes for Beginners</h1>
</body>If the title says one thing and the page says another, search engines notice the mismatch. This is one of the main reasons titles get rewritten, which a later chapter covers in detail.
Common mistakes
Keyword stuffing
A title such as Shoes, Running Shoes, Trail Shoes, Cheap Shoes, Buy Shoes Online repeats terms to chase rankings. It reads poorly, wastes space, and is a common trigger for rewriting. Use each important term naturally, once.
The same title everywhere
This usually comes from a template with a fixed string, or a CMS field left at its default. It is the most frequent large-scale failure, and the easiest to detect with a crawler.
Empty or placeholder titles
Titles such as "Untitled", "Home", or "Page 2" give no information. Paginated pages are a special case. Including the page number is reasonable (Trail Running Shoes, Page 2 | Example Store) because it distinguishes the pages.
Brand-only titles on inner pages
A title that is only the brand name is fine for a home page in some cases. On inner pages it throws away the best chance to describe the content.
Missing or multiple title elements
A document should have exactly one <title>. Missing titles leave the engine to guess from page content or the URL. Multiple titles, which can appear when a plugin and a theme both insert one, create ambiguity about which one counts.
Clickbait and mismatch
Promising "The Only Guide You Will Ever Need" on a thin page may win a click, but it can lead to a rewritten title and a quick return to the results.
A repeatable process
- Identify the single main topic of the page. If you cannot state it in a few words, the page may be trying to do too much.
- Write the topic in the words your audience uses. Check the page body and any search queries you already see in your analytics.
- Add a qualifier only if it separates this page from similar ones.
- Append the brand suffix, and shorten or drop it when the title is long.
- Compare the result against every other title on the site for duplicates.
Step 5 can be automated. The script below takes a list of page URLs and titles and reports any title used more than once.
from collections import defaultdict
pages = {
"/shoes/trail-running": "Trail Running Shoes for Beginners | Example Store",
"/shoes/hiking-boots": "Waterproof Hiking Boots, Men's | Example Store",
"/shoes/kids": "Shoes | Example Store",
"/shoes/sale": "Shoes | Example Store",
}
by_title = defaultdict(list)
for url, title in pages.items():
by_title[title.strip().lower()].append(url)
for title, urls in by_title.items():
if len(urls) > 1:
print(f"Duplicate title '{title}' on: {', '.join(urls)}")Running it prints one line, naming /shoes/kids and /shoes/sale as sharing the title "shoes | example store". The same idea scales to a crawl export with thousands of rows. Lowercasing and stripping whitespace catches near-duplicates that differ only by case or a trailing space.
Dynamic and templated pages
Sites rarely hand-write every title. A template combines fields, for example {product_name} | {category} | {site_name}. This works well when each field is filled in and differs between pages. It fails when a field is empty and leaves a title like | | Example Store, or when many pages share the same field values. Add a fallback so an empty field never produces a broken title. A later chapter covers how to generate tags in templates and frameworks.
Checking your work
After publishing, look at the page in a search result for a query that returns it. If the displayed title differs from your <title>, the engine rewrote it. That is a signal to compare the title against the heading and content, not necessarily a defect. You can also view titles across the site in a crawler export or in the search engine's reporting tools.
Summary of rules
- One
<title>per page, in the head. - Specific topic first, brand last.
- Aim for roughly 50 to 60 characters, and check the live display.
- Every page gets a different title, using the part that really differs.
- Describe the page honestly, and avoid repeating keywords.
Exercise
A site has 400 product pages that all show the title "Products | Example Store". Name the likely cause, say what to change, and explain why the brand suffix cannot fix the problem.
Show answer
The likely cause is a template or CMS field that outputs a fixed string instead of page-specific data. Change the template to build the title from a field that differs per page, such as the product name and category (for example "{product_name} | {category} | Example Store"), with a fallback for empty fields. The brand suffix cannot fix it because it is identical on every page. Uniqueness has to come from the part of the title that varies.
Exercise
A title is 78 characters long and ends up cut off in results. Is this an error, and what is the best way to improve it?
Show answer
It is not an error. Search engines truncate by pixel width, not a hard character limit, and can still read the full title. To improve it, move the most important words to the start, shorten the title toward roughly 50 to 60 characters, and drop or shorten the brand suffix so the topic stays visible.