Sub topic 10
Place keywords in the title, headings, URL, and body
This chapter assumes you already have one primary keyword and a short list of related keywords for a page, and that you know the parts of a web page: title, headings, URL, and body text. Here you decide where each keyword goes and how to word it.
Why placement matters
Search engines and readers both use a few high-signal spots to judge what a page is about. The title and H1 tell them the topic. Subheadings show the structure. The URL and opening paragraph confirm the topic. Placing the primary keyword in these spots makes the focus clear. Related keywords fit best in subheadings and body sections, where they cover the subtopics a reader expects.
The placement checklist
| Location | What to put there | Typical guidance |
|---|---|---|
| Title tag | Primary keyword, near the front if it reads well | Keep it short enough to avoid truncation in results, roughly 60 characters |
| Meta description | Primary keyword in a sentence that promises the page's value | Roughly 150 to 160 characters. It does not directly raise rankings, but it affects clicks. |
| H1 | Primary keyword in natural wording | One H1 per page |
| H2 and H3 | Related keywords and long-tail variants | Write headings that describe the section |
| URL | Primary keyword as a short slug | Lowercase, hyphens between words |
| First paragraph | Primary keyword once, early | State the topic plainly |
| Body | Primary keyword where it fits, plus related terms | No target count |
| Image alt text | A description of the image, using a keyword only if it describes the image | Accessibility comes first |
A worked example
The page is about choosing a primary keyword. Its primary keyword is "choose primary keyword". Its related keywords include "search intent" and "long-tail keywords".
<head>
<title>How to Choose a Primary Keyword for a Page | Example Site</title>
<meta name="description" content="Learn to pick one primary keyword and a few related keywords for a page, based on search intent and the current search results.">
</head>
<body>
<h1>How to choose a primary keyword for a page</h1>
<h2>Check the search intent first</h2>
<h2>Pick related keywords and long-tail variants</h2>
</body>Notice what the example does:
- The title, meta description, and H1 each contain the primary keyword, but none of them repeats it awkwardly. The wording changes ("choose a primary keyword", "pick one primary keyword") while the topic stays the same.
- The H2 headings carry related keywords ("search intent", "long-tail variants") and also read as useful section titles.
- The URL would be
/blog/choose-primary-keyword. It is short, readable, and matches the keyword map.
Keep the title, H1, and URL consistent but not identical
The title and H1 may differ. The title is written for the search results page, where it competes with other results. The H1 is written for someone who has already arrived. Both should clearly express the same topic. If the title promises one thing and the H1 delivers another, visitors leave and the page loses trust.
For the URL, choose the slug once, before publishing. Changing it later means setting up a redirect and risks losing some of the page's accumulated signals. Drop filler words such as "a" and "the" if the slug stays clear without them.
Place keywords in the body
In the body, write the page to answer the query completely. Then check whether the primary keyword appears in the first paragraph and whether each related keyword has a section or sentence where it belongs. Use variants freely: plurals, word order changes, and synonyms. Search engines understand these, and readers prefer them.
A quick audit helps. This script checks a page's key fields for the primary keyword:
page = {
"title": "How to Choose a Primary Keyword for a Page | Example Site",
"h1": "How to choose a primary keyword for a page",
"url": "/blog/choose-primary-keyword",
"first_paragraph": "Choosing a primary keyword starts with understanding what searchers want.",
}
keyword = "choose primary keyword"
# Compare words, ignoring case, so that "Choosing" and "choose a" do not cause false misses.
words = set(keyword.lower().split())
for field, text in page.items():
normalized = text.lower().replace("-", " ").replace("/", " ")
found = all(word in normalized for word in words)
print(f"{field}: {'ok' if found else 'check wording'}")The script is a rough check, not a rule. A "check wording" result on the first paragraph above shows why: "choosing" contains "choos" but not "choose". Decide by reading, not by the script alone.
Common errors
- Repeating the exact phrase in every heading. This reads as forced and weakens the structure.
- Using a related keyword as the H1 of the same page, which blurs the page's focus.
- Putting the keyword in the URL, then changing the title to a different topic.
- Targeting a keyword in the title that the body never discusses.
Exercise
A page has the primary keyword "keyword research tools". Its title is "Keyword Research Tools Compared", its H1 is "Best free keyword research tools for small sites", its URL is /blog/keyword-research-tools, and its H2 headings include "Keyword research tools, keyword research tools, and more". Which element should you change, and why?
Show answer
Change the H2 heading. It repeats the primary keyword three times without describing a section, which reads as forced and adds no structure. Replace it with a heading that names the section's real content, such as "How free tools estimate keyword difficulty", which also brings in a related keyword. The title, H1, and URL are consistent: they share the topic and differ in wording.