RankWiki

Technical SEO

Schema Markup

Schema markup is structured data code added to a webpage that helps search engines understand what the page is about and how its content is organized.

Also called
structured data
Applies to
web pages, content types

Key points

  • Schema markup uses a standardized vocabulary from Schema.org to label content types.
  • It is commonly added as JSON-LD in a page's HTML.
  • Correct schema markup can improve eligibility for rich results in search.
  • Schema markup is not a direct ranking factor but can improve click-through rate.
  • Structured data must match visible page content and be tested before deployment.

How it works

Schema markup is added to a page's HTML, most often as JSON-LD. It uses the Schema.org vocabulary to label entities such as products, reviews, events, and local businesses. Each type has defined properties that describe the content's attributes and relationships.

Search engine crawlers read the structured data to interpret the page's meaning more accurately. This explicit labelling aids crawlability and helps search engines distinguish between, for example, a recipe and a blog post about cooking.

Before deploying schema markup, validate the syntax and type selection using the rich results test. This tool checks whether the structured data is eligible for enhanced search features and flags any errors.

Why it matters

Schema markup does not guarantee higher rankings, but it can make pages eligible for rich results — a type of serp features that display additional information such as star ratings, prices, or event dates. These visually enhanced listings often attract more clicks, improving click-through rate.

For pages with content that maps cleanly to known schema types — products, recipes, organisations, FAQs, events — structured data gives search engines explicit clues about entities and context. This can lead to clearer interpretation and more prominent display in search results.

Without schema markup, search engines must infer meaning from unstructured text alone, which increases the chance of misinterpretation. Correctly implemented structured data reduces ambiguity and supports better SERP presentation.

Where it changes your decision

  • When publishing product pages: product schema can enable rich results showing price, availability, and reviews.
  • When publishing recipe pages: recipe schema can display cooking time, calorie count, and user ratings directly in search.
  • When publishing FAQ pages: FAQ schema can show questions and answers in an expandable format within the SERP.

Common mistakes

  • Using schema that does not match the visible page content: this can lead to manual actions or loss of rich result eligibility.
  • Expecting schema markup to automatically improve rankings instead of understanding it improves eligibility for rich results and clearer interpretation.
  • Implementing invalid or incomplete structured data without testing it first: errors cause the markup to be ignored.
  • Treating schema markup as a substitute for strong content, crawlability, or a canonical tag: structured data complements these elements, it does not replace them.
Read next Schema For a deeper understanding of how structured data fits into technical SEO, read the dedicated schema guide.

Questions people ask

What is schema markup in SEO?

Schema markup in SEO is structured data code added to a webpage to help search engines understand its content. It uses Schema.org vocabulary to label entities like products, reviews, and events. This can improve eligibility for rich results but is not a direct ranking factor.

How to add schema markup to website?

To add schema markup to a website, choose the appropriate Schema.org type for your content. Add the structured data as JSON-LD in the <head> or <body> of the page HTML. Use Google's rich results test to validate the markup before deployment.

How to add schema markup in WordPress?

In WordPress, schema markup can be added using SEO plugins like Yoast or Rank Math that include structured data settings. Alternatively, you can manually add JSON-LD code to the header via a theme file or a plugin like Insert Headers and Footers. Always test the markup with the rich results test after adding.

Sources

  1. Google Search Central Most authoritative source for how Google uses structured data and rich results.
  2. Schema.org Official vocabulary reference for schema types and properties.
  3. Google Rich Results Test Primary testing tool for checking rich result eligibility and implementation.
  4. Google Structured Data Testing / Schema Markup Validator Useful validator for checking structured data syntax and schema conformance.