Skip to content

JSON-LD

Entry #123 / 700 · Chapter 3 · 3.3 Structured data and Schema.org
In one sentence

A script block carrying structured data as JSON, the format Google recommends and the one that leaves your HTML untouched.

Analogy Mental model

A standard-format card tied to the luggage handle, rather than writing on the case itself or sewing a label into the lining.

In practice What you actually do

One script tag with type application/ld+json in the head, holding context, type and the properties you can actually substantiate. Generate it from the same data the template renders, so the two cannot drift apart the first time somebody changes a price.

Where people get burned Pitfalls

The markup and the visible page have to agree. A script saying ninety-nine while the page shows a hundred and twenty-nine is not a technical bug, it is a misleading claim, and it is treated as one.

This entry was written in English from the Chinese original, not machine-translated. Read the Chinese version →