Sub topic 8
Using Related Terms and Variations in Headings
This chapter covers how to use related terms and keyword variations in your headings. It assumes you can read basic HTML, know how a heading outline is built (one h1, then h2 and h3 sections), and have already chosen a primary target keyword for a page. The running example is a page about repotting a snake plant, with "repot a snake plant" as the target keyword.
Why one phrase is not enough
People describe the same need in different words. One person searches "repot a snake plant". Another searches "snake plant repotting", "change snake plant soil" or "move sansevieria to a bigger pot". Search engines treat many of these as the same need. They match meanings, not only exact strings.
A page that repeats one exact phrase in every heading does two things badly:
- It reads as repetitive, because the reader sees the same words again and again.
- It misses the other words people use, so it gives search engines fewer clues about the full scope of the topic.
Related terms and variations fix both problems. They let each heading say something specific while the page as a whole still points at the target keyword.
Kinds of related terms
Not every related word does the same job. It helps to sort them before you place them.
| Kind | What it is | Example for "repot a snake plant" |
|---|---|---|
| Inflection | A different grammatical form of the same word | repotting, repotted, repots |
| Synonym | A different word with nearly the same meaning | transplant, move to a new pot |
| Alternate name | Another name for the same thing | sansevieria, mother-in-law's tongue |
| Subtopic | A part of the task that searchers also look for | best soil, pot size, root rot |
| Question form | The topic phrased as a question | When should I repot a snake plant? |
| Entity or tool | A thing involved in the task | drainage hole, cactus mix, terracotta |
Inflections and synonyms vary the main phrase. Subtopics and entities extend it. A good outline uses all of these kinds, in different headings, and each heading keeps one clear job.
Finding related terms
You do not need special software to begin. Several free sources show how real people phrase the topic.
- Type the target keyword into a search engine and read the autocomplete suggestions.
- Read the "People also ask" box and the related searches at the bottom of the results page.
- Scan the headings of the top-ranking pages. Note which subtopics appear on most of them.
- Check your own site search logs or your search performance report, if you have one, for queries that already bring people to the page.
- Read forum threads and reviews on the topic. They show the plain words real readers use.
Collect the results in a list and group them by kind, as in the table above. Then drop anything that does not fit the page's search intent. A page that teaches repotting should not gain a section on "snake plant propagation" only because the term appeared in a list. That belongs on its own page.
Matching terms to the heading levels
The hierarchy gives each kind of term a natural place.
- h1: Use the target keyword or a very close form of it. The h1 sets the main topic.
- h2: Use the main steps and questions of the page. These are the best place for question forms and for the most common variations.
- h3: Use specific subtopics, entities and alternate names that belong under one h2.
The following diagram shows how the terms spread across the outline.
Notice that the h1 carries the exact target keyword. The h2 headings carry variations ("repot" becomes "repotting") and the supporting subtopics. The h3 headings carry the entities, such as pot and soil.
A worked rewrite
The weak outline from this tutorial's earlier chapters repeated one phrase and used vague labels. Here it is again.
<!-- 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>Rewrite it in three moves.
- Put the exact target keyword in the h1.
- Turn each section into a heading that names its own subtopic.
- Use a different form of the keyword in each heading where it reads naturally, and leave it out where it does not.
<body>
<h1>How to Repot a Snake Plant</h1>
<h2>When to Repot a Snake Plant: Signs It Has Outgrown Its Pot</h2>
<h2>What You Need for Repotting</h2>
<h3>Choosing a Pot With Drainage Holes</h3>
<h3>Choosing Soil: Cactus Mix or Succulent Mix</h3>
<h2>Step-by-Step: Moving Sansevieria to a New Pot</h2>
<h3>Removing the Plant and Checking the Roots</h3>
<h3>Trimming Rotted Roots</h3>
<h2>Aftercare: Watering and Light After Repotting</h2>
</body>Look at what changed:
- The exact phrase "repot a snake plant" appears twice in the outline (h1 and the first h2). That is enough.
- "Repotting" appears as an inflection. "Moving ... to a New Pot" is a plain-language synonym.
- "Sansevieria" is an alternate name, which catches readers who know the plant by its botanical name.
- "Drainage holes", "cactus mix" and "rotted roots" are entities and subtopics that describe real content under each heading.
- Every heading tells the reader what the section contains. No heading says only "More".
Writing the variation so it reads naturally
A variation works only if a human would write it that way. Use these checks.
- Read the headings aloud. If a heading sounds like a search query typed into a box, rewrite it as a sentence fragment a person would say.
- Check that each heading is distinct. Two headings that mean the same thing signal a section that should be merged, or one that lacks its own content.
- Let the content decide. A heading must describe the text below it. Do not add "sansevieria" to a heading if the section never discusses that name.
- Keep the keyword in the h1 even if you vary elsewhere. The variations support the h1. They do not replace it.
- Use the words your audience uses. If your readers say "snake plant" and almost never say "sansevieria", use the common name in headings and the rare name once in the body text.
The role of the body text
Headings carry only a small part of the vocabulary of a page. The body text under them does the rest. A section titled "Choosing Soil: Cactus Mix or Succulent Mix" should then use words such as "well-draining", "sand", "perlite" and "potting mix" in its paragraphs. Search engines read the whole page, so a heading that promises a subtopic and a body that delivers it make the strongest signal. A heading that is not backed by the text below it adds nothing.
Common mistakes
| Mistake | Why it hurts | Fix |
|---|---|---|
| Using the same exact phrase in every heading | Reads as repetitive and edges toward keyword stuffing | Keep the exact phrase in the h1 and one h2; vary the rest |
| Adding synonyms the section does not discuss | The heading no longer describes the content | Add the content, or remove the term |
| Forcing in a rare alternate name | Confuses readers who do not know it | Use it once, in context, with the common name beside it |
| Creating a heading for each variation | The page becomes a list of near-duplicate sections | Merge sections with the same intent into one |
| Turning every heading into a question | Makes the page feel like a script and hides the main topic | Mix questions, noun phrases and short instructions |
| Putting variations in the h1 only | The h1 becomes overloaded and unclear | Keep the h1 simple; spread variations across h2 and h3 |
The next chapter takes the last two rows of this table further and shows where variation turns into keyword stuffing.
Checking your own page
Use this short procedure after you write or revise an outline.
- Copy only the headings into a plain list, in order, with their levels.
- Mark each heading with the kind of term it uses: exact keyword, inflection, synonym, alternate name, subtopic or entity.
- Count how often the exact keyword appears. If it is in more than a small share of the headings, replace some with variations.
- Check that every heading would still make sense if you saw it alone in a table of contents.
- Check that each heading describes text that is actually on the page.
You can also extract the headings with a short script. The one below lists them with their levels so you can review them.
import re
import sys
from html.parser import HTMLParser
class HeadingExtractor(HTMLParser):
"""Collects (level, text) for every h1 to h6 element."""
def __init__(self):
super().__init__()
self.headings = []
self._level = None
self._parts = []
def handle_starttag(self, tag, attrs):
if re.fullmatch(r"h[1-6]", tag):
self._level = int(tag[1])
self._parts = []
def handle_data(self, data):
if self._level is not None:
self._parts.append(data)
def handle_endtag(self, tag):
if self._level is not None and tag == f"h{self._level}":
text = " ".join("".join(self._parts).split())
self.headings.append((self._level, text))
self._level = None
def main(path, keyword):
with open(path, encoding="utf-8") as f:
parser = HeadingExtractor()
parser.feed(f.read())
exact = 0
for level, text in parser.headings:
has_keyword = keyword.lower() in text.lower()
exact += has_keyword
marker = "*" if has_keyword else " "
print(f"{marker} h{level} {' ' * (level - 1)}{text}")
print(f"\nExact keyword in {exact} of {len(parser.headings)} headings")
if __name__ == "__main__":
main(sys.argv[1], sys.argv[2])Save your page as page.html and run python headings.py page.html "repot a snake plant". Lines marked with * contain the exact phrase. With the rewritten outline above, only the h1 contains it, because the h2 reads "When to Repot a Snake Plant" and does not match the exact string "repot a snake plant" as a lowercase substring only if the words differ. In this case "Repot a Snake Plant" matches once lowercased, so the h1 and that h2 are both marked. The script counts exact matches only, so review variations by eye.
Edge cases
- Very short pages. A page with only two or three sections has little room for variation. Do not invent sections to hold more terms. Vary the wording inside the sections you have.
- Different intent behind a variation. "Snake plant pot" may be a shopping query, while "repot a snake plant" is an instruction query. If a variation points to a different intent, give it its own page and link to it.
- Regional wording. "Pot" and "planter", or "soil" and "compost", differ by region. Choose the word your main audience uses and mention the other once in the body.
- Other languages and transliteration. If the page serves several languages, keep each language version consistent in its own headings. Do not mix terms across versions.
- Headings in templates. Some content systems insert fixed headings such as "Related posts". These add no topical terms. Make sure they do not become the only h2 headings on a short page, and use a lower level or non-heading markup if they are navigation.
Exercise
A page about "how to repot a snake plant" has these h2 headings: "Repot a Snake Plant", "How to Repot a Snake Plant Step by Step", "Snake Plant Repotting Guide", "Repotting a Snake Plant Tips". List the problems, then rewrite the four headings so that each covers a different part of the topic and uses a different kind of related term.
Show answer
The problems are that every heading repeats the same phrase, the headings overlap in meaning, and none names a distinct subtopic, so the reader cannot tell the sections apart. A rewrite: "When to Repot: Signs the Plant Has Outgrown Its Pot" (subtopic and inflection), "Choosing a Pot and Cactus Mix" (entities), "Step-by-Step: Moving the Plant and Trimming Roots" (synonym "moving"), "Aftercare: Watering and Light After Repotting" (inflection and subtopic). The exact phrase stays in the h1, so the h2 headings no longer need it.
Exercise
Sort these terms into the kinds from the table (inflection, synonym, alternate name, subtopic, entity): "sansevieria", "repotted", "drainage hole", "transplant", "root rot".
Show answer
"sansevieria" is an alternate name for the snake plant. "repotted" is an inflection of "repot". "drainage hole" is an entity (a physical item involved in the task). "transplant" is a synonym for "repot". "root rot" is a subtopic that searchers associate with repotting.