Sub topic 8
Structuring the page so facts are easy to find
This chapter assumes you have read the earlier chapters on self-contained claims, statistics, and expert quotes. You should be able to read basic HTML and simple tables. It covers how to lay out a page so the claims you wrote can be located, lifted out, and understood without the rest of the page.
Why structure matters for extraction
An AI search system usually does not read a page the way a person does. A typical pipeline fetches the page, splits it into passages, and scores those passages against a question. The exact steps differ between systems and are not published, so treat this as a working model. It is not a specification.
If this model is roughly right, three things follow:
- A passage is judged mostly on its own text. A number that depends on a heading three screens up may lose its meaning when the passage is separated from that heading.
- Headings, lists, and tables give the splitter natural boundaries. A page that is one long block of text gets cut at arbitrary points.
- Content that only appears after scripts run, or only inside images, may not be seen at all.
Good structure does not guarantee a citation. It removes avoidable reasons for a system to skip or misread a fact you already published.
Put the answer where the question is
Write headings that name the question or the fact, and put the key claim in the first sentence under the heading. A reader, or a passage splitter, then gets the answer before the supporting detail.
Compare two headings and openings:
- Weak: "Our findings" followed by two paragraphs of background.
- Stronger: "How much time do team leads save with workflow automation?" followed by "In our 2026 survey of 412 team leads, the median time saved was 4.5 hours per week."
The stronger version repeats the population, the number, and the unit in the sentence itself. That follows the self-contained claim rule from earlier. A heading helps, but the sentence must still make sense if the heading is lost.
Heading rules that hold up
- Use one
h1per page and nesth2andh3in order. Do not skip levels to get a visual size. - Make each heading specific. "Results" says little. "Median hours saved by team size" says what follows.
- Keep one main idea per section. If a section answers two questions, split it.
- Avoid headings that only work as teasers, such as "You won't believe the number."
Keep each passage short and complete
A passage that can be quoted is usually a few sentences. Long paragraphs that mix a statistic, a caveat, a quote, and a recommendation give a system no clean unit to take.
A practical pattern for a data section:
- State the finding in one sentence with population, number, unit, and date.
- Add one sentence of context, such as a comparison or a range.
- Add one sentence on the source or method, with a link to the methodology section.
Keep the caveat close to the number. If a result applies only to team leads who chose to answer the survey, say so in the same paragraph. A caveat placed at the bottom of the page will be separated from the number when the passage is extracted, and the quoted number will then look more general than it is.
Use tables for comparable numbers
When you have several values that share a unit, a table is easier to extract than prose. Each row is a small, labelled fact. Use a header row, name the unit in the header, and keep each cell to one value.
| Team size | Respondents | Median hours saved per week |
|---|---|---|
| 1 to 10 people | 148 | 3.5 |
| 11 to 50 people | 171 | 4.5 |
| 51 or more people | 93 | 6.0 |
Rules for tables that extract well:
- Put a one-sentence lead-in above the table that names the survey, the date, and the population. The table alone does not say who was surveyed.
- Name the unit in the column header, not only in a footnote.
- Do not merge cells or nest tables. Many extractors flatten tables into text, and merged cells break that flattening.
- Do not use an image of a table. Text inside an image may not be read, and it cannot be quoted.
- Repeat the most important row as a sentence in the prose. This gives a system a quotable sentence even if it ignores the table.
The three rows above would be summarised in the page text like this: "In our 2026 survey, team leads at companies with 51 or more people reported a median of 6.0 hours saved per week, compared with 3.5 hours at companies with 1 to 10 people."
Use lists for parallel items
Use a list when you have items that are the same kind of thing, such as steps, criteria, or findings. Use a numbered list only when order matters. Start each item with the key term or fact, and make each item readable alone.
A list item like "Faster" is useless when extracted. A list item like "Report generation time fell from 6 hours to 40 minutes in the pilot team" can stand alone.
Keep quotes and their attribution together
An expert quote must travel with the speaker's name, role, organisation, and date. The HTML below keeps all of these inside one figure element, so a splitter that works on elements is likely to keep them together.
<figure>
<blockquote cite="https://example.com/interviews/jane-doe">
<p>Most of the delay came from manual handoffs, not from the tools themselves.</p>
</blockquote>
<figcaption>
Jane Doe, Head of Data at Example Co, interviewed on 2026-02-12
</figcaption>
</figure>Three details matter here:
- The
figcaptionis plain visible text. Do not hide attribution in an attribute only. - The
citeattribute points to the source, but browsers do not show it by default. It supplements the visible attribution and does not replace it. - The quote is a complete thought. Cutting a quote mid-sentence changes its meaning and breaks the accuracy rules covered in the integrity chapter.
Make the page readable without scripts
Check what the page contains before any JavaScript runs. If your table, chart data, or quote is injected by a script after load, a crawler that does not run scripts will see an empty space.
You can test this with a short script. It fetches the raw HTML and checks that the key facts are present as text.
import re
import urllib.request
URL = "https://example.com/research/workflow-automation-survey"
MUST_CONTAIN = [
"412 team leads",
"median",
"hours per week",
]
request = urllib.request.Request(URL, headers={"User-Agent": "page-structure-check/1.0"})
with urllib.request.urlopen(request, timeout=15) as response:
html = response.read().decode("utf-8", errors="replace")
# Remove script and style blocks, then strip tags to approximate visible text.
html = re.sub(r"(?is)<(script|style).*?</\1>", " ", html)
text = re.sub(r"(?s)<[^>]+>", " ", html)
text = re.sub(r"\s+", " ", text)
for phrase in MUST_CONTAIN:
status = "found" if phrase.lower() in text.lower() else "MISSING"
print(f"{status}: {phrase}")The script is a rough check. It does not run JavaScript, which is the point: anything it reports as missing is not in the delivered HTML. Replace the URL and phrases with your own page and facts.
Give the page clear signals of what it is
A few page-level elements help a reader and a system judge what the page is and how current it is:
- A descriptive title and a short summary near the top that states the main finding.
- A visible author name and a visible publication or update date. Use real dates, and change the update date only when content changes.
- A methodology section with a heading and a stable anchor link, such as
#methodology, so claims elsewhere can link to it. - A stable URL. If you restructure the site, redirect the old address so existing citations keep working.
Anchor links deserve a note. A claim that links to #methodology lets a reader reach the method in one click. Give important sections an id and keep it stable, because other pages may link to it.
<h2 id="methodology">How we ran the survey</h2>
<p>
We emailed 2,310 team leads between 2026-01-15 and 2026-02-20 and received
412 usable responses. Respondents chose to take part, so results describe
responders and not all team leads.
</p>Common errors
| Error | Why it hurts | Fix |
|---|---|---|
| Key number appears only in an image | Text extractors cannot read it | State it in text and add alt text |
| Heading says "Results" with no context | Heading gives no signal about the question | Name the question or metric |
| Caveats collected at the page bottom | The number is quoted without its limits | Put the limit in the same paragraph |
| Table with merged cells | Flattening scrambles the values | Use one value per cell |
| Content added by script only | Crawlers without scripts see nothing | Serve the facts in the HTML |
| Update date changed without edits | Misleads readers about freshness | Change it only when content changes |
| Quote and speaker in separate sections | Attribution is lost on extraction | Keep both in one `figure` |
What structure cannot do
Structure helps a system find and interpret a fact. It does not make the fact worth citing, and it does not control which source a system picks. Each system uses its own undisclosed logic, and two systems given the same page may choose different passages. Use the guidance above to remove obstacles, then judge results by measurement, which a later chapter covers.
Exercise
A page states "Teams saved a lot of time" under the heading "Results", then shows a bar chart image with the values 3.5, 4.5, and 6.0. Name three changes that make the facts easier to find and quote, using this chapter's rules.
Show answer
First, rename the heading to name the question, for example "Median hours saved per week by team size". Second, replace the vague sentence with a self-contained one that states the population, number, unit, and date, such as "In our 2026 survey of 412 team leads, the median time saved was 4.5 hours per week." Third, add the values as an HTML table with units in the column headers, and write alt text for the chart that states the finding, so the numbers do not exist only inside the image.
Exercise
You run the Python check from this chapter and it reports "MISSING: 412 team leads", although the number is visible in your browser. What is the most likely cause, and what should you do?
Show answer
The number is probably inserted by JavaScript after the page loads, so it is not in the raw HTML that the script fetched. Change the page so the sentence is served in the HTML itself, for example by rendering it on the server or writing it directly into the page, then run the check again. A second possibility is that the text is written differently, such as "412 respondents", in which case align the wording.