Sub topic 5
Make Each Section Understandable on Its Own
This chapter assumes you know basic HTML (headings, paragraphs, lists, tables) and have a working picture of how AI answer systems retrieve passages from a page. It also assumes you can build a heading hierarchy and write descriptive headings, which the previous chapters covered. Here you will learn to write sections that still make sense when a retrieval system pulls them out of the page and shows them alone.
Why a section must stand alone
A retrieval-based answer system does not read your page top to bottom the way a person does. It splits the page into passages, scores each passage against a question, and passes the best ones to a model that writes the answer. Often the model sees only those passages, with none of the text around them.
If a passage depends on something said three paragraphs earlier, that dependency is lost. A reader who arrives from a link, a search snippet, or an AI citation has the same problem. They land in the middle of the page with no earlier context.
A self-contained section is one whose meaning survives extraction. Someone who reads only that heading and its body should know what is being discussed, what the claim is, and what conditions apply.
No structure guarantees that a passage will be selected or cited. Self-contained sections remove one common reason a good passage fails to be useful, and they also help human readers.
What breaks when text is lifted out of context
Consider this section as it might appear in a router guide.
<h2>Doing it again</h2>
<p>As mentioned above, it works the same way, but you need to hold it longer. Then do the other thing and wait.</p>Read alone, this section has four problems:
- The heading names no subject.
- "It" has no referent.
- "As mentioned above" points to text that is not present.
- "The other thing" cannot be identified.
Now consider a rewrite.
<h2>How do I factory reset a router that does not respond to a short press?</h2>
<p>Hold the reset button for 15 seconds instead of 10. Some router models ignore a short press while a firmware update is running.</p>This version names the device, the action, and the condition. It could be quoted anywhere and remain accurate.
Techniques for self-contained sections
Name the subject instead of using pronouns
Pronouns such as "it," "this," "they," and "that" are safe inside a sentence or two. They become risky at the start of a section, because the referent is usually in the previous section. Repeat the noun at the start of each section.
| Context-dependent | Self-contained |
|---|---|
| It supports up to 10 users. | The Team plan supports up to 10 users. |
| This also erases saved passwords. | A factory reset also erases saved Wi-Fi passwords. |
| They expire after 30 days. | Invitation links expire after 30 days. |
Repeating a noun can feel clumsy when you write, but it costs little and prevents ambiguity.
Avoid positional references
Phrases like "above," "below," "the previous step," "as we saw earlier," and "the table on the right" assume a fixed reading order and layout. Replace them with the name of the thing.
- Instead of "see the section above," write "see the section on heading hierarchy" and link to it.
- Instead of "the steps below," write "the four steps to reset the router."
- Instead of "as noted earlier, the limit is 10," write "the limit is 10 users on the Team plan."
A link is fine as an addition. Do not rely on it to carry the meaning. The sentence should still make sense with the link removed.
State the scope and conditions inside the section
A claim often holds only for a version, a plan, a region, or a configuration. If the condition lives in the introduction, a lifted passage will present the claim as universal. Put the qualifier next to the claim.
<h2>How long do invitation links last?</h2>
<p>Invitation links in the Team plan expire after 30 days. Basic accounts cannot send invitations.</p>The qualifier "in the Team plan" travels with the sentence. An answer system that quotes this passage will not misstate the limit for other plans.
Define terms where you use them
If a section depends on a term that the page defined earlier, define it again briefly. One short clause is enough.
<h2>What is a DHCP lease?</h2>
<p>A DHCP lease is the period during which a router lets a device keep an assigned IP address. The default lease on most home routers is 24 hours.</p>You do not need to repeat a glossary in every section. Redefine the terms that the section's main claim depends on.
Keep one topic per section
A section that covers two questions is hard to extract cleanly. A passage that includes both answers may be too diluted to match either question well. When a section answers two things, split it into two headed sections.
A useful test is to ask what question the section answers. If you need the word "and" to phrase the question, consider splitting it.
How this fits with the rest of the structure
Self-contained sections build on the descriptive headings you wrote in the previous chapter. A heading such as "How do I factory reset the router?" supplies the subject that the body no longer needs to restate with a pronoun. The next chapter builds on this one: once a section stands alone, you open it with the direct answer.
The diagram below shows the difference between extraction from a dependent section and from a self-contained one.
A before-and-after example
The next example shows a section from a software help page, first written in a dependent style.
<section>
<h2>Limits</h2>
<p>As described earlier, they apply per workspace. Going over them blocks the action below until the next cycle. You can raise them by contacting support.</p>
</section>Rewritten so it can stand alone:
<section>
<h2>What are the API rate limits for a workspace?</h2>
<p>API rate limits apply per workspace, not per user. When a workspace exceeds its limit, further API requests are rejected until the next billing cycle begins. To raise the limit, contact support.</p>
</section>The rewrite names the subject (API rate limits), the scope (per workspace), the consequence (requests are rejected), and the next action (contact support). No other part of the page is needed to understand it.
Edge cases and trade-offs
Repetition versus readability
Strictly self-contained sections repeat nouns and short definitions. On a page read straight through, this can feel redundant. Aim for a balance. Restate the subject and any qualifier that changes the meaning, and skip repetition that adds nothing. A one-clause reminder is usually enough, and a full paragraph of recap is too much.
Lists and tables inside a section
A list or table is part of its section, so the sentence before it should say what it contains. A bare list of items under a heading that says "Details" cannot stand alone.
<h2>What do I need before I reset the router?</h2>
<p>Before a factory reset, you need the router's default login credentials and access to the device's reset button.</p>
<ul>
<li>The default username and password printed on the router label</li>
<li>A paperclip or pin to press the recessed reset button</li>
<li>A note of your internet provider's connection settings</li>
</ul>The introductory sentence supplies the subject, so the list items make sense even when they are read alone with that sentence.
Nested headings
Subsections under a parent section often rely on the parent for context. A subsection titled "When it is not needed" is ambiguous. Make the subsection heading carry its own subject, as in "When a factory reset is not needed," so it works when extracted without its parent.
Sections that cannot be fully independent
Some content depends on sequence, such as a multi-step tutorial in which step four needs the result of step three. Do not force these into unrelated fragments. Instead, state the starting state at the top of the section ("After you have created the project and installed the dependencies...") so the section is understandable even if it is not complete.
Shared navigation and boilerplate
Text in headers, footers, sidebars, and cookie banners is not part of any section. Do not depend on it for meaning. A product name that appears only in the page header should also appear in the body text where the claim is made.
A quick checklist
Use these checks on each section before you publish.
- Read only the heading and body. Can you say what the subject is?
- Search the section for "it," "this," "they," "above," "below," and "earlier." Replace any that point outside the section.
- Confirm that every version, plan, region, or condition that limits a claim appears in the same sentence or the next one.
- Confirm that any term the main claim depends on is defined in the section.
- Confirm that the section answers one question.
You can automate part of the second check. The script below flags sections that begin with a vague pronoun or contain positional references. It will not catch every problem, so treat it as a first pass.
import re
POSITIONAL = re.compile(
r"\b(as (mentioned|noted|described|discussed|we saw) (above|earlier|before)"
r"|see (above|below)|the (previous|following|next) (section|step)|above|below)\b",
re.IGNORECASE,
)
VAGUE_START = re.compile(r"^(it|this|that|they|these|those)\b", re.IGNORECASE)
def review(sections):
findings = []
for heading, body in sections:
if VAGUE_START.match(body.strip()):
findings.append((heading, "body starts with a vague pronoun"))
match = POSITIONAL.search(body)
if match:
findings.append((heading, f"positional reference: '{match.group(0)}'"))
return findings
sections = [
("Limits", "As mentioned above, they apply per workspace."),
("What are the API rate limits?", "API rate limits apply per workspace."),
]
for heading, problem in review(sections):
print(f"{heading}: {problem}")Running it prints one finding for the first section: a positional reference. The first body does not start with a pronoun because it starts with "As mentioned above," so only the positional check matches. The second section produces no output.
Summary of the technique
Self-contained sections name their subject, put conditions next to claims, define the terms they depend on, and cover one question. They avoid pointing at other parts of the page for meaning. The result reads well for people who arrive mid-page and for systems that extract passages without the surrounding text.
Exercise
The following section is extracted from a page about a subscription service. Identify three problems that stop it standing alone, then rewrite it. Heading: "Cancelling". Body: "As explained above, you can do it from there. It takes effect at the end of the period, and they will not refund the remainder."
Show answer
Problems: (1) the heading "Cancelling" does not name the subject or pose a question; (2) "As explained above" and "from there" point to content outside the section, and "it" and "they" have no referent. A rewrite: Heading: "How do I cancel my subscription?" Body: "You can cancel your subscription from the Billing page in your account settings. Cancellation takes effect at the end of the current billing period, and the company does not refund the remaining time." Any rewrite that names the subscription, states where to cancel, and removes positional references and unclear pronouns is acceptable.
Exercise
A section titled "What does the Team plan include?" opens with the sentence "It includes 10 users and priority support." Another section on the same page opens with "This also applies to Basic accounts." Which of the two is safer when quoted alone, and what change would fix the other one?
Show answer
Neither is fully safe, but the first is better because its heading supplies the subject ("the Team plan") that "it" refers to. It is still safer to write "The Team plan includes 10 users and priority support." The second sentence is unsafe because "This" refers to something in a previous section. Replace it with a sentence that states the subject and rule, such as "The 30-day invitation expiry also applies to Basic accounts."