Sub topic 1
Why Pages Need Structured Data
Prerequisites
This chapter assumes basic HTML, JSON syntax, URLs, and familiarity with publishing web pages.
Why Pages Need Structured Data
A web page is written for people, but software must infer what its content means. A title such as “Cold Coffee” might describe an article, a product, or a category. Structured data adds machine-readable facts to the page.
Structured data can help search engines classify content and qualify it for enhanced search displays. It does not guarantee a special result or improve rankings by itself. The data must describe content that users can see on the page.
JSON-LD as JSON with Meaning
JSON-LD is JSON with linked-data meaning. JSON is the syntax: objects, arrays, strings, and other values. JSON-LD adds keywords such as @context and @type so programs can interpret those values.
<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",
"author": {
"@type": "Person",
"name": "Ana Torres"
}
}
</script>The script element keeps this metadata separate from visible page markup. It does not display the JSON-LD as page text.
Types and Properties in schema.org
Schema.org is a shared vocabulary of types and properties. A type identifies a kind of entity, such as Article, Product, or Organization. A property describes one characteristic, such as headline, name, or author.
The type affects which properties are appropriate. An Article can have a headline; a Product can have an offers property containing an Offer.
Declaring @context and @type
@context tells a processor how names such as Article and headline are defined. For schema.org markup, use https://schema.org.
@type states what the object represents. An object normally has one main type, although schema.org supports multiple types when they are appropriate.
Properties and the Values They Expect
Properties accept specific kinds of values. headline expects text. datePublished should be a date-time string. author can contain another object, such as a Person or Organization. A property may also accept an array when more than one value exists.
| Property | Typical value |
|---|---|
| `name` | Text |
| `url` | URL string |
| `author` | Person or Organization object |
| `image` | Image URL or ImageObject |
Exercise
What do @context and @type contribute to a JSON-LD object?
Show answer
@context identifies how vocabulary terms are defined, and @type identifies the kind of entity being described.