Skip to content

Structured data

Also called: structured data markup, schema markup, schema.org markup, JSON-LD

Published:

How is structured data written?

Google defines structured data as a standardised format for providing information about a page and classifying its content [1]. Google Search supports three formats: JSON-LD, Microdata and RDFa, and where a site's setup allows it, Google generally recommends JSON-LD [1]. JSON-LD keeps the markup in a separate script block as a JSON object, while Microdata and RDFa add attributes directly to the visible HTML elements [2].

Where does schema.org fit in?

The format decides how the data is written; a vocabulary decides which names to use. Google says most structured data in Search uses the schema.org vocabulary [1]. Schema.org describes itself as shared vocabularies site owners can use to mark up their pages, and notes that major search engines including Google, Microsoft, Yandex and Yahoo! can understand that markup [2]. Its types include Movie, Person, Event and Recipe [2].

What does an example look like?

In Google's own example, a recipe page marked up with JSON-LD lets Google show the recipe as a rich result [1]. Schema.org's guide shows the same idea at a smaller scale: a cooking time of an hour and a half is written as the machine-readable duration PT1H30M [2]. Note the wording, though. Google says structured data can enable richer results; it does not say every marked-up page will get one [1].

Frequently asked questions

Which format should I use?

Google generally recommends JSON-LD when your setup allows it. Microdata and RDFa are also supported.

Does structured data guarantee a rich result?

No. Google says it can enable rich results, not that every marked-up page will receive one.

Sources

  1. Intro to How Structured Data Markup Works — Google Search Central
  2. Getting Started — schema.org

Related terms