Sub topic 2
Headings that match the questions people ask
This chapter assumes you know basic HTML headings, paragraphs and lists, and that you have edited web content such as docs or help articles before. It covers how to turn headings, passages, claims and sources into units that AI answer systems can lift and quote.
Headings that match the questions people ask
AI answer systems often match a user's question against page headings. A heading that states the question makes the match easy. Write each ## or ### heading as the question a reader would type, then answer it in the first two sentences below.
<section>
<h2>How long should I cache API responses?</h2>
<p>Cache API responses for as long as the data can be stale without harming users. For data that changes a few times a day, a time-to-live (TTL) of 5 to 15 minutes is a common starting point.</p>
</section>Use descriptive headings. "Caching" tells a reader little. "How long should I cache API responses?" tells both readers and systems exactly what the section answers.
Writing passages that survive being lifted out of context
Retrieval systems often pull out one passage, not the whole page. Each passage must make sense alone. Avoid openers such as "As mentioned above" or "This approach." Name the subject in every passage.
Specific claims and clear definitions
Write claims with numbers, units and conditions. "Caching helps performance" is vague. "A 5-minute TTL cuts origin requests for data that changes hourly" is specific. Define each technical term once, at first use, in the form "X is a ...".
Backing claims with evidence and named sources
Attach each claim to a named source, such as a vendor document, a standard or a dated measurement. Name the publisher and the year. A claim with a source is easier for a system to attribute, and easier for a reader to trust.
> Do not add extra detail to a claim unless you can name where it came from.
Replace that quoted line with plain prose in your own pages. Block quotes are not supported in this chapter's format.
flowchart TD
A[Heading as a question] --> B[Direct answer in two sentences]
B --> C[Specific numbers and definitions]
C --> D[Named source for each claim]:::callout note A heading and a clear first answer raise your chances of being quoted. No technique guarantees it. :::
Exercise: Rewrite the heading "Caching" as a question, and write a two-sentence answer.
Q: Rewrite the heading "Caching" as a question, then write a two-sentence answer that could stand alone.
A: Example: "How long should I cache API responses?" Answer: "Cache responses for as long as the data can be stale without harming users. For data that changes a few times a day, a 5 to 15 minute TTL is a common starting point."
Estimated time for an intermediate reader: 20 minutes.