Schema markup is structured data added to a page's HTML that spells out what the page contains in a form machines can read. A person sees a product page and understands the name, the price and the star rating. Markup states the same facts explicitly: this is a Product, this is its price, this is its average rating from 120 reviews.
The words come from schema.org, a shared vocabulary of types and properties founded by Google, Microsoft, Yahoo and Yandex. That's where the name comes from. In SEO, "schema markup" and "structured data" are mostly used to mean the same thing.
What markup does in Google Search
Markup helps Google understand a page, and it's what makes a page eligible for rich results: search listings with extras such as prices and stock, star ratings, recipe times, event dates or a breadcrumb trail instead of a bare URL.
Eligible isn't the same as guaranteed. Google decides per search whether to show a rich result, and correct markup doesn't promise one. The payoff is a listing that shows more and can earn more clicks. In one case study Google publishes, Rotten Tomatoes measured a 25% higher click-through rate on pages with structured data than on pages without (Google Search Central).
Which rich results you can still get
Google supports only some schema.org types for rich results, and the list changes. Its search gallery currently includes, among others:
- Product and Review snippet for prices, availability and ratings
- Article and Breadcrumb for news, blog and other content pages
- Recipe, Event, Job posting and Video
- Organization and Local business for logos, contact details and opening hours
Features also disappear. How-to rich results stopped showing in 2023, and FAQ rich results stopped on May 7, 2026 (Google Search Central updates). So before you mark up a page type for a visible result, check that it's still in the gallery. Markup that doesn't lead to a rich result can still help Google and other services understand the page, but don't expect a visible change.
The three formats
You can write the same markup in three formats. Google supports all three and treats them as equally fine when they're valid:
- JSON-LD is a block of JSON in a
<script>tag, separate from the visible HTML. Google recommends it because it's the easiest to add and maintain. It also reads JSON-LD that JavaScript adds to the page. - Microdata puts attributes such as
itemscopeanditempropon the HTML elements that hold the content. - RDFa also uses HTML attributes, from a different standard.
Here's JSON-LD for a product page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trail Running Shoe X2",
"image": "https://example.com/images/x2.jpg",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"reviewCount": 120
},
"offers": {
"@type": "Offer",
"price": 89.00,
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
</script>
How to add it
- Pick the feature from Google's gallery that fits the page, such as Product for a product page.
- Read Google's page for that feature. It lists the required properties. A product snippet, for example, needs a
nameand at least one ofreview,aggregateRatingoroffers. For Google, its own documentation counts, not schema.org's. - Mark up what visitors can see. The price, rating and details in your markup must match the visible page. Fewer properties that are complete and correct beat many that are vague.
- Generate it from your data. On a CMS such as WordPress or Shopify, a theme or plugin usually adds markup for you. On a custom site, build it in the page template so it updates with the content.
Test and monitor
- The Rich Results Test shows which Google features a page is eligible for and flags missing properties.
- The Schema Markup Validator checks any schema.org markup, including types Google doesn't use.
- In Search Console, the rich result reports show errors across the site after launch. Templates break, so check them now and then.
To see whether markup paid off, Google suggests a before-and-after test: add it to a few stable pages and compare their clicks in the Performance report over a few months.
Rules that cost you rich results
Don't mark up content visitors can't see, and don't mark up anything misleading, such as reviews you wrote yourself or a rating that isn't on the page. Breaking Google's structured data guidelines can lead to a manual action. That removes the page's eligibility for rich results; it doesn't affect how the page ranks in web search.