Question
Structured Data Fundamentals: JSON-LD, Microdata, and RDFa
Short answer
Structured data is a standardized description of what a page contains, written with the schema.org vocabulary in one of three formats: JSON-LD, Microdata or RDFa. Google supports all three and says "all 3 formats are equally fine for Google, as long as the markup is valid and properly implemented", while recommending JSON-LD as the easiest to maintain in most cases. What markup can earn is eligibility for specific Google features, and only for the types Google currently supports; Google does not guarantee those features, and markup is not required to appear in Google's AI features.
Sources
- 1developers.google.com
- 2support.google.com
- 3developers.google.com
- 4developers.google.com
- 5developers.google.com
- 6w3.org
- 7developers.google.com
- 8validator.schema.org
Ask next
What Structured Data Does in Google Search
Markup removes ambiguity a search engine would otherwise have to resolve from text: which number on a product page is the price, whether the item is in stock, who wrote an article and when. Google uses that to make pages eligible for rich results, but eligibility is the ceiling. Google’s structured data general guidelines state: “Google does not guarantee that your structured data will show up in search results, even if your page is marked up correctly according to the Rich Results Test.”
The set of supported features changes, so check it before building templates. Google’s Rich Results Test lists the types it currently supports, including Article, Breadcrumb, Event, Local business, Organization, Product snippet, Recipe, Review snippet and Video, among others. Several types that older guides still promote no longer produce anything visible in Google Search:
| Type | Status in Google Search |
|---|---|
| FAQPage | FAQ rich result no longer shown since May 7, 2026 |
| HowTo | HowTo rich result removed in September 2023 |
| Course info | Retired in 2025; only the course list remains |
| BreadcrumbList | Still supported; since January 2025 breadcrumbs appear on desktop results, not mobile |
Each type has its own guide: what to do with FAQPage markup, HowTo schema, Course schema and BreadcrumbList schema.
The breadcrumb change is in the Search Central documentation changelog for January 22, 2025: breadcrumbs “only appear on desktop search results, not mobile”, because of how they get truncated on smaller screens.
For AI features, Google’s guide to optimizing for generative AI features says “Structured data isn’t required for generative AI search, and there’s no special schema.org markup you need to add”, while recommending you keep using it “as it helps with being eligible for rich results on Google Search.”
The Three Formats
Google’s introduction to structured data describes JSON-LD as “A JavaScript notation embedded in a <script> tag in the <head> and <body> elements of an HTML page”, where “The markup is not interleaved with the user-visible text, which makes nested data items easier to express”.
| Format | Where it lives | Practical trade-off |
|---|---|---|
| JSON-LD | A separate script block | Easiest to generate from templates and to keep separate from layout changes; must be kept in sync with the visible content |
| Microdata | Attributes on the visible HTML elements | Markup and visible text are the same elements, so they can't drift apart; layout changes can break the markup |
| RDFa | Attributes on the visible HTML elements | Same trade-off as Microdata |
A working Microdata implementation does not need to be migrated for Google’s sake; Google treats valid markup in any of the three formats equally. For new work, JSON-LD is the practical default.
Writing JSON-LD Correctly
Every block declares @context (the vocabulary, https://schema.org) and @type (what is being described). Properties come from the schema.org definition of that type, and nested objects describe related entities, such as the author of an article as a Person.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Structured Data Fundamentals",
"image": "https://www.example.com/images/structured-data.jpg",
"datePublished": "2026-10-26T09:00:00-05:00",
"dateModified": "2026-10-26T09:00:00-05:00",
"author": {
"@type": "Person",
"name": "Jordan Example",
"url": "https://www.example.com/authors/jordan-example"
}
}
JSON is strict. Keys and string values use double quotes, there is no trailing comma after the last item, and comments are not allowed. A double quote inside a string must be escaped with a backslash:
{
"description": "He said "hello" and left."
}
A single syntax error invalidates the whole block. Google’s Rich Results Test documentation adds that the test “ignores comments within JSON-LD blocks”, but that behavior “is not supported by the JSON-LD standard”, so remove comments before publishing.
To describe several entities on one page, put them in separate script blocks or in one block with @graph, which the JSON-LD 1.1 specification describes as collecting nodes “in an array” while allowing “the use of a shared context”. Give entities an @id so they can refer to each other instead of repeating the same organization in every block:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "Example Publishing",
"url": "https://www.example.com/"
},
{
"@type": "Article",
"headline": "Structured Data Fundamentals",
"publisher": { "@id": "https://www.example.com/#organization" }
}
]
}
Required Versus Recommended Is Feature-Specific
Each Google feature has its own required and recommended properties, and they are not the same as schema.org’s definitions. Article is a good example: Google’s Article structured data documentation says “There are no required properties; instead, add the properties that apply to your content”, and lists recommended properties such as author (with author.name and author.url), datePublished, dateModified, headline and image. Event, by contrast, requires name, startDate and location, and JobPosting requires five properties. Read the feature’s own page before deciding what a template must output.
The Rules That Apply to All Markup
From Google’s general guidelines:
- “Don’t mark up content that is not visible to readers of the page”. If the JSON-LD describes a performer, Google’s example says, “the HTML body must describe that same performer”.
- “Don’t mark up irrelevant or misleading content, such as fake reviews or content unrelated to the focus of a page”.
- “Provide up-to-date information. We won’t show a rich result for time-sensitive content that is no longer relevant”.
- Don’t use structured data “to deceive or mislead users”, including misrepresenting “your ownership, affiliation, or primary purpose”.
The guideline is about what readers can see on the page. Google’s wording doesn’t single out tabs or accordions; the clear violation is text that exists only in the JSON-LD and nowhere in the page.
Specific types help where they exist: a restaurant can use Restaurant instead of the generic LocalBusiness, and Google’s Article documentation accepts Article, NewsArticle and BlogPosting. Review markup has its own restrictions; for example, a business’s own LocalBusiness or Organization pages are ineligible for review stars when the business controls the reviews, as explained in Review and AggregateRating schema.
Validating Markup Over Time
- Rich Results Test. Checks markup against the rich result types Google supports and can preview some features. Use it during development and on live URLs.
- Schema Markup Validator (validator.schema.org). Checks syntax against the full schema.org vocabulary, including types Google doesn’t use for rich results.
- Search Console rich result reports. Search Console shows a separate report for each supported rich result type it finds on your property; these are where template errors show up after release, not the Page indexing report.
- URL Inspection. Shows how Google sees a specific live page; Google’s feature documentation uses it to check pages after deployment.
No tool checks whether the markup tells the truth. A price in the markup that differs from the price on the page, or reviews that aren’t the page’s own, pass a syntax check and still break the guidelines.
Where to Go Next
Choose markup by page type, using the guides for each: Article schema, LocalBusiness schema, Organization and Person schema and Product schema.
Before building a template’s markup, look the type up in the Rich Results Test’s list of supported types: markup for a type whose feature Google has retired, such as FAQPage or HowTo, can validate cleanly and still produce nothing in Google Search.
Link profile
Links to 10 guides
- FAQ Schema: Markup and Rich Results
- HowTo Schema: Step-by-Step Content Markup
- Course Schema: Educational Content Markup for Search Visibility
- BreadcrumbList Schema: Navigation Markup
- JobPosting Schema: Job Listing Markup for Google for Jobs
- Review and AggregateRating Schema
- Article Schema: Implementation for Blogs and News Sites
- LocalBusiness Schema: Complete Implementation Guide
- Organization and Person Schema: Building Entity Identity
- Product Schema and Rich Results for E-commerce
Linked from 5 guides
Cites 8 sources
- structured data general guidelines developers.google.com
- Rich Results Test lists the types it currently supports support.google.com
- Search Central documentation changelog developers.google.com
- guide to optimizing for generative AI features developers.google.com
- introduction to structured data developers.google.com
- JSON-LD 1.1 specification w3.org
- Article structured data documentation developers.google.com
- validator.schema.org validator.schema.org