Sub topic 4
Write Headings That Describe the Section’s Answer
Assume you already know basic HTML headings, paragraphs, and search-result snippets. This chapter focuses on choosing heading text that helps both readers and retrieval-based AI answer systems understand what each section contains.
Why should a heading describe the section’s answer?
A descriptive heading tells the reader what question the section resolves. It also gives an answer system a useful label for the passage that follows.
Retrieval-based systems often split a page into smaller passages. A passage may be selected because its text matches a user’s question. The heading gives that text context. For example, “Benefits” is vague. “How does semantic HTML help AI retrieval?” identifies the subject and the expected answer.
A heading should make sense with the first paragraph below it. The paragraph should then answer the heading directly.
<h2>How does semantic HTML help AI retrieval?</h2>
<p>
Semantic HTML identifies the role of content, so browsers, assistive tools,
and retrieval systems can distinguish headings, lists, and tables more easily.
</p>The heading does not guarantee that an AI system will quote the section. It improves the page’s clarity and makes the passage easier to interpret.
What makes a heading descriptive?
A useful heading names the subject and the specific task, property, or question covered by the section.
Compare these examples:
| Vague heading | Descriptive heading |
|---|---|
| Features | Which HTML elements identify a list? |
| Structure | How should headings show content hierarchy? |
| Benefits | Why do self-contained sections help retrieval? |
| Examples | What does a question-style heading look like? |
Descriptive headings usually have these properties:
- They identify the topic instead of using a broad label.
- They use the words a reader might use in a question.
- They describe the content immediately below them.
- They avoid promises that the section does not fulfill.
- They remain short enough to scan.
A question-style heading works well when the section answers a distinct question:
<h2>When should you use an ordered list?</h2>
<p>
Use an ordered list when the sequence matters, such as for setup steps or a
procedure.
</p>A statement-style heading can work better when the section explains a rule:
<h2>Ordered lists represent meaningful sequence</h2>
<p>
The order of items matters because the reader must complete them in that order.
</p>Choose one style for a group of related sections. Do not mix questions, fragments, and promotional phrases without a reason.
How specific should a heading be?
A heading should be specific enough to distinguish its section from nearby sections. It should not repeat every detail from the paragraph.
For example, “How do tables improve pages?” is too broad if the section only discusses header cells. “Why do table header cells matter for interpretation?” is more precise.
Avoid stuffing headings with repeated keywords:
<h2>AI search optimization headings for AI search and AI answers</h2>This wording sounds unnatural and does not define a clear section. Use the actual subject:
<h2>How do descriptive headings clarify a retrieved passage?</h2>A heading also needs the correct level. Use h1 for the page title, h2 for major sections, and h3 for a subsection inside the current h2 section. Heading level communicates nesting. Styling should not determine the level.
How can you test a heading?
Read each heading without the surrounding page. Ask what answer you expect below it. Then read only the first paragraph. It should answer that expectation without requiring a different section.
Check that:
- The heading names one main topic.
- The first paragraph addresses that topic.
- The wording matches the page’s terminology.
- The heading level fits the outline.
- A reader can distinguish it from neighboring headings.
Exercise
Replace the heading “Lists” with a descriptive heading for a section explaining that unordered lists represent items whose order does not matter.
Show answer
Use “When should you use an unordered list?” The heading identifies the decision the section explains and lets the opening paragraph provide the rule.