Sub topic 1
Why pages need structured data
Prerequisites
This chapter assumes you know basic HTML, including the script element. You should also read JSON: objects, arrays, strings, numbers, and booleans. Finally, you should know what a URL is and how a web page gets published.
The problem: pages are written for people
A web page is built for human readers. A person sees a large heading, a date under it, and a name in a byline. From layout and context, they understand that this is an article, who wrote it, and when it was published.
A program sees only HTML tags and text. It must guess which text is the title, which number is a price, and whether "Ana Torres" is an author or a person mentioned in the text. Guessing is slow, and it breaks when the page design changes.
Structured data fixes this. It is a block of machine-readable facts that states what the page is about, using agreed names for things and their properties.
Two pieces that solve different problems
Two technologies work together here. Each one solves a separate problem.
| Piece | What it is | Problem it solves |
|---|---|---|
| JSON-LD | A way to write data as JSON, with added keywords such as `@context` and `@type` | How to write and attach the facts |
| schema.org | A shared vocabulary of types (such as `Article`) and properties (such as `headline`) | What the words in the facts mean |
JSON-LD stands for JSON for Linking Data. It is plain JSON with a few extra keywords. schema.org is a public vocabulary that major search engines support. Without a shared vocabulary, one site might write title and another name, and a program could not tell they mean the same thing. With schema.org, both use headline for an article's title.
A first example
The markup below describes an article. It sits in a script element, so visitors do not see it.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Brew Cold Coffee",
"datePublished": "2026-03-14T08:00:00+00:00",
"image": "https://example.com/images/cold-coffee.jpg",
"author": {
"@type": "Person",
"name": "Ana Torres",
"url": "https://example.com/authors/ana"
}
}
</script>Read it in three steps:
@contextsays the property names come from schema.org.@typesays the thing described is anArticle.- The other keys are properties of that article. The
authorvalue is a nestedPerson, so a program knows Ana Torres is a person and the author, not just text.
Later chapters explain each part in detail. For now, notice that no program has to guess.
How the data travels
A crawler is a program that fetches pages automatically. Search engines use the facts it finds to understand a page. They may also use them for enhanced results, such as a product listing that shows a price. Other tools read the same markup, for example to build link previews or to feed data pipelines.
What structured data does not do
The data supports the page and does not replace it. If the markup claims a price that the page does not show, it is misleading, and search engines may ignore it. This rule returns in the chapters on guidelines and on common mistakes.
Summary of the idea
- Pages are written for people, so machines must guess their meaning.
- JSON-LD gives a way to attach facts to a page as JSON.
- schema.org gives those facts shared, agreed names.
- Search engines may use the facts, but they are never required to.
Exercise
Your page shows a recipe title and a cooking time. A teammate says, "JSON-LD is the vocabulary that defines what headline means." Correct this statement, and say which technology fills that role.
Show answer
The statement is wrong. JSON-LD is the syntax, meaning the way to write and attach the facts as JSON. The vocabulary that defines terms such as headline is schema.org.
Exercise
A product page's JSON-LD lists a price of 19.90, but the visible page shows no price. Why is this a problem?
Show answer
Markup must match the visible page content. A price that visitors cannot see is misleading, and search engines may ignore the markup or treat it as a guideline violation.