Sub topic 3
Putting the Answer First
Assume you already know basic HTML, can edit web content, and understand how search engines display results. This chapter focuses on one writing change: state the answer before the background.
What answer-first structure means
Answer-first structure puts the direct response immediately below a question-led or descriptive heading. The opening usually takes one to three sentences. It answers the question in plain language before adding examples, conditions, evidence, or related advice.
AI answer systems often retrieve a passage instead of reading an entire page as one unit. A passage that begins with a clear answer is easier to select and quote. Readers also benefit because they can decide quickly whether the section solves their problem.
Rewrite a buried answer
A buried answer makes the reader search through history, definitions, or general advice before finding the conclusion.
Weak opening:
## Caching API responses
Caching has been used in computing for decades. Many teams choose different strategies based on traffic, data, and infrastructure. Time-based expiry is one option. A useful starting point is a time-to-live of 5 to 15 minutes for data that changes a few times per day.The answer appears last. The heading also names a topic rather than the reader’s question.
Stronger opening:
## How long should I cache API responses?
Cache API responses for as long as the data can be stale without harming users. For data that changes a few times a day, start with a time-to-live of 5 to 15 minutes. Adjust that range when freshness or traffic patterns require it.
A time-to-live is the period that a cached response remains usable before the system requests fresh data. Shorter values reduce staleness but increase requests to the origin service.The first two sentences answer the question. The following paragraph defines a term and explains the trade-off.
Use a repeatable rewrite method
- Write the question a reader would ask.
- Answer it in one sentence with a specific recommendation, definition, or result.
- Add a second sentence that states the main condition or limitation.
- Move background history below those sentences.
- Add an example, procedure, or source that supports the answer.
- Read the opening without the rest of the page. It should still make sense.
Use numbers when they are meaningful. Replace “use a short cache” with “start with a 5-minute time-to-live for data that changes every few minutes.” Name the subject of each sentence so a copied passage does not depend on an earlier paragraph.
| Buried opening | Answer-first opening |
|---|---|
| Background comes before the conclusion | Conclusion comes before background |
| Uses broad topic heading | Uses a real reader question |
| Needs nearby context | Makes the main claim understandable alone |
Keep the passage self-contained
A retrieved passage may be shown without the paragraphs around it. Avoid openings such as “This method works well” or “It depends on the situation” when the subject is not named. State what “this method” is and which situation matters.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>API cache duration</title>
</head>
<body>
<main>
<h1>API caching guide</h1>
<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, start with a time-to-live of 5 to 15 minutes.</p>
<p>A time-to-live is the period that a cached response remains usable before the system requests fresh data. Use a shorter period for fast-changing data and a longer period for stable data.</p>
</section>
</main>
</body>
</html>The heading identifies the question, and the first paragraph answers it. The second paragraph adds context without being required to interpret the first.
Exercise
Exercise
Rewrite this opening so the answer appears in the first two sentences: “Choosing a canonical URL involves several considerations. Duplicate pages can occur for many technical reasons. The canonical URL is the preferred address to index when equivalent content appears at multiple URLs.”
Show answer
“A canonical URL is the preferred address to index when equivalent content appears at multiple URLs. Choose one stable, absolute URL and declare it consistently on the duplicate pages.”