Sub topic 11
Avoid Common Structural Mistakes
Assume you know basic HTML headings, paragraphs, lists, and tables, and understand how search engines display page results. This chapter focuses on structural errors that make useful content harder for retrieval-based AI answer systems to interpret and quote.
Why structural mistakes reduce clarity
Structural mistakes blur the boundaries between ideas. A retrieval system may split a page into passages and select one passage without the surrounding page. If that passage has a vague heading, missing context, or an incomplete list, the system has less evidence that the passage answers a question.
A clear structure cannot guarantee citation. It can make the page easier for systems and people to understand.
Do not skip heading levels
A heading level should show the section's place in the document outline. Use one h1 for the page's main subject. Use h2 for major sections and h3 for sections inside an h2. Do not choose a heading level only because its visual size looks right.
| Mistake | Problem | Better structure |
|---|---|---|
| `h1` followed by `h3` | The outline skips a level | `h1`, then `h2`, then `h3` |
| Several `h1` elements for visual emphasis | The page has unclear primary scope | One page-level `h1`, with `h2` sections |
| Bold paragraph used as a heading | Software may not identify its role | A real heading element |
Use CSS to change appearance. Use HTML heading levels to express meaning.
Avoid vague or misleading headings
A heading should tell the reader what the section answers. Labels such as “Overview,” “More Information,” and “Details” provide little retrieval context. A question-style heading can state the user's likely intent.
For example, replace “Details” with “Which HTML element should contain a comparison table?” The second heading gives context even when a system retrieves the section without the rest of the page.
A heading must also match the content below it. Do not use a heading about pricing and then discuss implementation steps. A mismatch can cause an answer system to associate the wrong claim with the wrong topic.
Keep sections self-contained
Each important section should identify its subject and use clear references. Avoid paragraphs that begin with “It also supports this” or “As noted above.” Those phrases depend on nearby content that may not be included in a retrieved passage.
Weak section:
<h2>Benefits</h2>
<p>It makes them faster and easier to compare.</p>The reader cannot tell what “it” and “them” mean. A clearer section names both subjects:
<h2>Why semantic tables help product comparisons</h2>
<p>Semantic table markup makes product attributes easier to compare for readers and assistive technology.</p>Self-contained does not mean repeating the entire page. State the subject, the main claim, and any condition needed to understand the claim.
Do not bury the answer
A common mistake is opening a section with background, history, or marketing language and placing the answer several paragraphs later. Put the direct answer in the first paragraph. Add explanation, examples, and qualifications afterward.
This pattern works well:
- State the answer.
- Explain why it is correct.
- Give an example or implementation detail.
- Add an important limitation.
Use the right structure for the content
Do not force every idea into a paragraph. Use an ordered list when sequence matters, an unordered list when order does not matter, and a table when readers must compare the same attributes across multiple items.
Common errors include using line breaks instead of list elements, omitting a table caption, and using data cells without header cells. These choices may look acceptable visually but remove meaning from the markup.
| Content type | Suitable structure |
|---|---|
| Setup instructions | Ordered list |
| Set of requirements | Unordered list |
| Feature comparison | Table with caption and header cells |
| Explanation or argument | Paragraphs with descriptive headings |
Keep structured data consistent
JSON-LD can describe visible content for machines, but it is not a guarantee that an answer system will cite the page. The structured data must match what readers can see. Do not add FAQ questions, ratings, prices, or claims that appear only in JSON-LD.
If the visible answer changes, update the JSON-LD at the same time. Conflicting versions reduce trust and can make the markup invalid for its intended use.
Exercise
A page uses one h1, then h3 for every subsection because the designer likes the smaller text. What should you change?
Show answer
Keep the visual style in CSS, change the subsection elements to h2, and use h3 only for sections nested inside those h2 sections.