Skip to content
SeoWiki

The SEO encyclopedia

Technical SEO

Schema

Schema is a standardized vocabulary for adding structured data to web pages so search engines can better understand page content and qualify it for rich results.

Beginner6 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Schema helps search engines understand your content explicitly.
  • It can make your pages eligible for rich results, improving click-through rates.
  • Always use JSON-LD and validate with Google's tool.
  • Only mark up visible content that matches the schema type.
  • Schema is not a ranking factor but can enhance search appearance.

It acts as a translator between your content and search engine algorithms.

Example

A recipe page with schema markup can show a star rating, cooking time, and calorie count directly in search results. For instance, a JSON-LD snippet for a chocolate cake recipe might include:

{
  "@context": "https://schema.org",
  "@type": "Recipe",
  "name": "Chocolate Cake",
  "author": "Jane Doe",
  "cookTime": "PT30M",
  "recipeYield": "8 servings",
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.5",
    "reviewCount": "120"
  }
}

This helps Google display a rich snippet with the rating and time.

When should I use this?

  • When you want your content to stand out in search results with rich features like stars, prices, or FAQs.
  • For pages with clear entities: products, articles, events, local businesses, reviews, or recipes.
  • To help search engines understand complex content like job postings, courses, or software apps.
  • When you are targeting voice search or knowledge panels.

What it is not

  • Not a direct ranking factor: Schema does not boost your position in search results.
  • Not a substitute for quality content: Rich results still require good content and user experience.
  • Not a one-size-fits-all: Each page type needs a specific schema type (e.g., Product, Article).
  • Not a magic bullet: Incorrect or spammy schema can lead to penalties.

Quick start

  1. Identify the main content type of your page (e.g., article, product, local business).
  2. Go to Schema.org and find the corresponding schema type.
  3. Write a JSON-LD snippet with required properties (e.g., name, description).
  4. Add the snippet to the <head> or <body> of your page.
  5. Test your markup using Google Rich Results Test.
  6. Fix any errors or warnings until the test passes.

Common mistakes

  • Marking up content that is not visible on the page (e.g., hidden text).
  • Using the wrong schema type (e.g., marking a blog post as 'Product').
  • Adding incomplete JSON-LD that fails validation (missing required fields).
  • Assuming schema alone will improve rankings without supporting content and page quality.

Next step

FAQ

Does schema improve rankings?

Schema itself is not a ranking factor, but it can improve click-through rates by enabling rich results, which may indirectly benefit SEO.

What is the best format for schema?

Google recommends JSON-LD because it is easy to implement and maintain without altering HTML.

Can I use schema for any page?

Yes, but only if the schema type matches the visible content. For example, use 'Product' for product pages, 'Article' for blog posts.

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.