Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

structured-data

Rules: 8

structured-data/breadcrumb

A breadcrumb in structured data leads to a missing page

structured-data/breadcrumb/unreachable · warning · score 5.2 · site

Search engines show the breadcrumb trail in results, so an item that redirects or answers an error sends visitors to the wrong place.

Fix

Point each breadcrumb item at the final URL of a page that answers 200.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata
  • http.status
  • site.redirects

structured-data/date

Structured data dates are malformed or contradictory

structured-data/date/invalid · warning · score 4.6 · page

Dates that are not ISO 8601, a modified date before the published date, or a published date that differs from article:published_time make search engines show wrong dates or ignore them.

Fix

Write each date as ISO 8601 with a time zone, from the same source that fills article:published_time.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata
  • html.property

structured-data/entity

The same entity is described inconsistently across pages

structured-data/entity/inconsistent · warning · score 5.0 · site

One @id typed differently, or one organisation or person under several @ids, splits what search engines know about it into separate entities.

Fix

Give each real-world entity one absolute @id and the same @type on every page that describes it.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/json-ld

JSON-LD blocks on the page do not parse

structured-data/json-ld/invalid · error · score 7.8 · page

Search engines skip a JSON-LD block that is not valid JSON, so the page loses its rich results. A stray quote or newline in a templated value is the usual cause.

Fix

Serialise the JSON-LD with a JSON encoder instead of a text template, so quotes and newlines in values are escaped.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld

structured-data/property

Structured data lacks properties its rich result requires

structured-data/property/missing · warning · score 5.8 · page

Google shows a rich result such as a product or recipe card only when the required properties are present, so the page is ineligible without them.

Fix

Add the missing properties to each named node, or drop a type the page does not really describe.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/reference

Structured data refers to a node that is never defined

structured-data/reference/broken · warning · score 4.8 · site

A reference to an @id that no crawled page defines points at nothing, so search engines cannot connect the entities and the link adds no information.

Fix

Define each referenced @id on the page it points into, or on the referring page itself; a reference into a page that never defines it names nothing.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/term

Structured data uses superseded schema.org terms

structured-data/term/deprecated · warning · score 4.0 · page

Search engines may stop reading terms that schema.org has replaced, so the data they carried silently falls out of results.

Fix

Rename each term to the one schema.org supersedes it with.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/url

Structured data claims disagree with the page’s own tags

structured-data/url/mismatch · warning · score 5.4 · page

When the url or name in the markup differs from the canonical URL and the title, search engines distrust it and may ignore the structured data.

Fix

Point url and mainEntityOfPage at the canonical URL, and use the page title as the entity’s name or headline.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata
  • html.canonical
  • html.title
  • html.property