Sub topic 10
Add Structured Data That Matches the Visible Page
What does structured data add to a page?
Structured data gives search systems explicit labels for information that already appears on the page. JSON-LD is a format for writing this information as a JavaScript object inside a page. Schema.org provides the vocabulary, such as Article, HowTo, Product, and FAQPage.
Structured data can help a system identify questions, answers, authors, dates, products, or steps. It does not force an AI answer system to retrieve, quote, or cite your page. The visible page content and its structure remain the primary source for readers.
This chapter assumes that you know basic HTML, headings, and search-result concepts. You should also be comfortable editing a page template or its <head> element.
How should JSON-LD match visible content?
JSON-LD should describe information that a reader can find on the same page. If the markup says that a page answers a question, the question and answer should appear visibly in the page text. Do not add hidden claims only to attract a search feature.
The following example shows a visible FAQ and matching FAQPage JSON-LD. The question and answer use the same wording in both places.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Router reset guide</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What does a factory reset do?",
"acceptedAnswer": {
"@type": "Answer",
"text": "A factory reset erases saved settings and restores the router to its default configuration."
}
}
]
}
</script>
</head>
<body>
<main>
<h1>Router reset guide</h1>
<section>
<h2>What does a factory reset do?</h2>
<p>A factory reset erases saved settings and restores the router to its default configuration.</p>
</section>
</main>
</body>
</html>The JSON-LD describes the page. It does not replace the heading, paragraph, or semantic section. A crawler that cannot access the visible answer may treat the structured data as unreliable or misleading.
Which structured data should you choose?
Choose a type that describes the page's main purpose. Use Article for an article, HowTo for genuine step-by-step instructions, and FAQPage when the page visibly contains questions and answers. Use Product only for a product page with product information shown to visitors.
Keep each property accurate and current. A page about a router reset should not claim to be a recipe, review, or product offer simply because that type might produce a richer search result.
| Page content | Suitable type | Required discipline |
|---|---|---|
| Questions and visible answers | `FAQPage` | Repeat each answer on the page |
| Ordered instructions | `HowTo` | Show the same steps and sequence |
| A dated editorial article | `Article` | Match the title, author, and date |
| A product listing | `Product` | Match price, name, availability, and reviews |
How does structured data fit with page structure?
Use semantic HTML for the reader and JSON-LD for machine-readable labels. These layers should agree.
A good implementation follows this order:
- Write a clear heading and direct answer.
- Confirm that the answer is visible and accurate.
- Choose the schema type that fits the page.
- Copy the same facts into JSON-LD.
- Validate the JSON syntax and review the rendered page.
What common mistakes should you avoid?
Do not mark up content that users cannot see. Do not put several conflicting answers in visible text and structured data. Do not copy stale prices, dates, or availability values into a template. Do not assume that adding more properties makes a page more authoritative.
Check the final rendered HTML, not only the source template. Confirm that the JSON-LD is valid JSON, that its URLs are correct, and that every important claim has a visible counterpart.
Exercise
A page visibly contains three questions but its JSON-LD describes only one. Should you add the other two questions to the markup?
Show answer
Add them only if their answers are also visible, accurate, and part of the page's actual content. Otherwise, leave them out and fix the page first.