Sub topic 3
Semantic HTML: lists, tables and clean sections
This chapter assumes you know basic HTML elements (headings, paragraphs, lists, tables) and have edited web content before. It covers how markup, structured data, crawler rules, testing, and upkeep help answer-first passages get quoted.
Use elements for their meaning
Pick each element for what the content is. An <ol> marks steps that must run in order. A <ul> marks items with no required order. A <table> with <th> header cells marks a comparison. Wrap each question and its answer in a <section> that starts with one <h2> or <h3>.
<section>
<h2>How long should I cache API responses?</h2>
<p>Cache responses for as long as stale data is harmless. Data that changes a few times a day usually suits a 5 to 15 minute time-to-live (TTL).</p>
<table>
<thead><tr><th>Data change rate</th><th>Suggested TTL</th></tr></thead>
<tbody><tr><td>Several times a day</td><td>5 to 15 minutes</td></tr></tbody>
</table>
</section>Structured data that mirrors the visible page
JSON-LD (JavaScript Object Notation for Linked Data) is a script block that describes page content for machines. Its questions and answers must match the text readers see. Structured data is a hint about the page, not a guarantee of citation.
Letting the right crawlers reach your content
robots.txt is a plain text file at the site root. It tells each crawler which paths it may fetch. Address each crawler by its user-agent token, and check the vendor's current documentation for token names.
User-agent: OAI-SearchBot
Allow: /
User-agent: *
Disallow: /admin/Testing whether your content is quoted
Choose ten target questions. Ask each one to AI answer tools every month. Record whether your page is cited and which passage was used. Compare results across months to see whether your edits help.
Keeping answers accurate over time
Review each page on a fixed schedule, such as every quarter. Update figures and dates, and show the review date on the page so readers and crawlers can judge freshness.
Common pitfalls and what no technique guarantees
- Marking up content that does not appear on the page.
- Using headings for styling instead of document structure.
- Using a table for layout instead of tabular data.
- Expecting structured data or
robots.txtto produce citations.
No technique guarantees that an AI system will quote your page. These steps raise your chances.
Exercise
Which element should hold a list of setup steps that must run in order, and why?
Show answer
Use an <ol>. Its items are numbered, which tells readers and parsers that the order matters.