How schema markup works
Google recommends the JSON-LD format: a small script in the page’s HTML. A local business, for example, can mark up its name, address, phone number and opening hours. Search engines read this data to understand the page, and Google can use it to show rich results such as star ratings, prices, event dates and breadcrumbs.
Common types
- Organization and LocalBusiness
- Product, with offers and reviews
- Article and BlogPosting
- Event, Recipe and JobPosting
- BreadcrumbList
Good to know
- Markup must describe content that visitors can actually see on the page.
- It makes a page eligible for rich results but doesn’t guarantee them, and it isn’t a direct ranking factor.
- Check your markup with Google’s Rich Results Test and the Schema Markup Validator.
A JSON-LD example
A simple LocalBusiness block inside a script tag of type application/ld+json:
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Example Bakery",
"address": {"@type": "PostalAddress", "streetAddress": "1 Main Street", "addressLocality": "Malmö", "addressCountry": "SE"},
"telephone": "+46 40 000 000",
"openingHours": "Mo-Fr 08:00-17:00"
}
How to add schema markup
- Choose the type that matches the page.
- Generate JSON-LD with your SEO plugin, your CMS or by hand, using the Schema.org documentation.
- Test it with Google’s Rich Results Test and the Schema Markup Validator.
- Check the Enhancements reports in Search Console after it is live.
Schema and rich results change
Google decides which markup it shows as a rich result, and it changes over time. For example, Google stopped showing FAQ rich results in search on 7 May 2026. Use markup to describe what is on the page, not only to chase a rich result. Google also says AI features need no special schema.
Common schema mistakes
- Marking up content that is not visible on the page.
- Fake or self-serving review markup.
- Missing required properties for the type.
- Duplicate, conflicting markup from a plugin and a theme.
Schema markup FAQs
Does schema help rankings?
It is not a direct ranking factor. It helps search engines understand the page and can make it eligible for rich results.
JSON-LD or microdata?
Google recommends JSON-LD because it is separate from the visible HTML and easier to maintain.