Sub topic 4
Writing a title tag around the keyword
This chapter assumes you know basic HTML structure (head, body, common tags) and what a search results page looks like. You should also know that a target keyword is the main phrase a page should rank for, chosen to match what searchers want. Here you will turn that keyword into a working title tag.
What the title tag does
The <title> element sits in the <head>. Browsers show it in the tab. Search engines use it to understand the page and usually show it as the blue link in results. It is often the first thing a searcher reads, so it must work for both a crawler and a person.
Keep the roles separate. The title is the page's label in results and tabs. The h1 is the heading readers see on the page. They should agree on the topic but need not be identical.
A step-by-step method
Use the same process for each page.
- Start from the target keyword. For this chapter the example is "repot a snake plant".
- Add the page type or the promise. Searchers who type this phrase want instructions, so "Step-by-Step Guide" tells them they will find them.
- Put the keyword near the start. Words at the start are least likely to be cut off, and they show the match to the query at a glance.
- Write the result as a natural phrase a person could say aloud.
- Check the length and the wording, then read it as it would appear in results.
Here is a title built this way, with a matching meta description.
<head>
<title>How to Repot a Snake Plant: Step-by-Step Guide</title>
<meta name="description" content="Learn when and how to repot a snake plant, which pot and soil to use, and how to avoid root damage.">
</head>The title starts with the phrase "How to Repot a Snake Plant", which contains the keyword in a natural form. The words after the colon state the page type. The title uses the keyword once.
The meta description is not a ranking tool in the way the title is. Search engines may show it as the snippet under the title, so it helps persuade people to click. Write it as a short summary that repeats the topic in plain words.
Fixing a weak title
The following example shows the most common mistakes in one place.
<!-- Weak: repeated keyword, skipped level, vague headings -->
<title>Snake plant | snake plant repotting | repot snake plant | best snake plant</title>
<h1>Snake Plant</h1>
<h4>Snake plant repotting tips snake plant</h4>
<h2>More</h2>Look only at the <title> line for now. It has three problems:
- It repeats the same phrase four times. This is keyword stuffing, the practice of cramming a keyword into text to influence ranking. It reads badly and can make a page look low quality.
- It lists fragments separated by pipes, so it does not say what the page offers.
- It contains "best", which is a different intent from "how to repot". The page does not claim to be a ranking of anything.
The h1 and the headings below it are fixed in later chapters.
Compare the weak title with the rewritten one in the table.
| Check | Weak title | Rewritten title |
|---|---|---|
| Keyword position | Spread across four fragments | At the start |
| Repetition | Four times | Once |
| States page type | No | Yes, "Step-by-Step Guide" |
| Reads as a phrase | No | Yes |
Length and truncation
Search engines do not cut titles at a fixed number of characters. They limit them by pixel width on the results page, and wide letters such as "W" use more space than narrow ones such as "i". As a rough guide, about 50 to 60 characters usually display in full on desktop. Longer titles may end in an ellipsis.
The rewritten title is 48 characters, so it should display whole. If you need more words, place the important ones first, so a cut falls on the least important part.
How the title fits the process
The diagram shows the order of decisions, from the keyword to a finished title.
Common errors
- Writing the title for the crawler only. If a person would not click it, it fails.
- Using the same title on several pages. Each page needs its own title, because identical titles make pages hard to tell apart in results.
- Leaving the title empty or at a default such as "Home" or "Untitled".
- Using a keyword that does not match what the page delivers. The title is a promise, and the page must keep it.
- Adding the site name at the start. Put a brand name at the end, after a separator, unless the brand is the keyword.
Exercise
A page about baking sourdough has this title: "Sourdough | sourdough bread | bake sourdough | sourdough recipe". Rewrite it for the target keyword "bake sourdough bread" and give two reasons the new version is better.
Show answer
One good answer is "How to Bake Sourdough Bread: A Beginner's Guide". It is better because it uses the keyword once, near the start, instead of repeating it in fragments, and because it says what the page offers (a beginner's guide) in a phrase a person can read naturally. It is also about 45 characters, so it should display in full.
Exercise
Why should you put the most important words at the start of a title?
Show answer
Search results limit titles by pixel width, so long titles can be cut off at the end. Words at the start are the least likely to be lost, and they show the searcher quickly that the page matches the query.