admin@talhasalman.com +92 344 2883692 Mon to Sat, 10:00 to 22:00 PKT

Schema Markup for SEO: A Plain Guide With Examples

What schema markup is, why it matters for SEO, the types worth adding first, JSON-LD examples you can copy and how to test them.

Schema markup for SEO: an Article schema example written in JSON-LD

Schema markup is structured data code, usually written in JSON-LD, that tells search engines exactly what a page is about: an article, a product, a local business, an event or a person. Google uses it to understand your content and to decide whether the page can appear with rich results such as review stars, prices or breadcrumbs. It does not guarantee those results, and it is not a direct ranking factor, but it removes guesswork for search engines.

I add schema markup to every client site I work on, because a strong link profile works better when Google clearly understands the pages those links point to. This guide explains what schema markup is, which types are worth your time, how to write JSON-LD with copy ready examples and how to test it before it goes live.

What Is Schema Markup?

Schema markup is a shared vocabulary of types and properties published at Schema.org. Google, Microsoft (Bing) and Yahoo launched the project in 2011, and Yandex joined soon after, so one set of labels works across the major search engines. When you add it to a page, you turn plain text into labeled facts: this is the headline, this is the author, this is the price, these are the opening hours.

Schema markup vs structured data

People use the two terms as if they mean the same thing, but there is a small difference. Structured data is the general idea of organizing information in a standard format. Schema markup is structured data that uses the Schema.org vocabulary. In SEO, almost all structured data you will write is Schema.org markup, so both terms usually point to the same code.

What a search engine sees with and without it

Without schema, Google reads “4.8 from 212 reviews” as text and has to infer what it means. With schema, the same facts are labeled as an AggregateRating with a ratingValue of 4.8 and a reviewCount of 212. That clarity is what makes a page eligible for enhanced search features, and it also helps Google connect your brand, authors and pages as entities.

Why Schema Markup Matters for SEO

Schema markup earns its place in three ways: richer search listings, clearer entity signals and cleaner data for search features. Google’s own introduction to structured data shares case studies from sites that added it.

SiteWhat they didReported result
Rotten TomatoesAdded structured data to 100,000 unique pages25% higher click-through rate on those pages
Food NetworkEnabled search features on 80% of pages35% increase in visits
NestleMeasured pages that show as rich results82% higher click-through rate than non rich result pages

Rich results and click-through rate

Rich results take more space and give searchers more reasons to click: star ratings, prices, stock status, event dates, video thumbnails and breadcrumb trails. My guide to SERP features shows every result type and which ones structured data supports.

Is schema markup a ranking factor?

No. Google has been clear that structured data helps it understand pages and makes them eligible for rich results, but adding it does not push a page up the rankings by itself. Treat it as a way to make good pages more visible and easier to understand, not a shortcut around content quality or backlinks.

Schema Markup Formats: JSON-LD, Microdata and RDFa

Google supports three formats. All three are valid if they follow the guidelines, but they differ a lot in how easy they are to maintain.

The three schema markup formats compared: JSON-LD, Microdata and RDFa, with JSON-LD recommended by Google
JSON-LD keeps the markup in one script block, which is why Google recommends it.

JSON-LD sits in a single script tag of type application/ld+json, in the head or the body. It does not touch your visible HTML, so you can add, edit or generate it without breaking the layout. Google recommends JSON-LD when your setup allows it, and nearly every schema markup generator and SEO plugin outputs it.

Microdata and RDFa

Microdata and RDFa add attributes such as itemscope, itemprop, vocab and typeof directly to your HTML tags. They tie the markup to the visible content, which some older themes still use, but nested types become hard to read and a small template change can break them. If you inherit a site with Microdata that validates, you can leave it; for anything new, write JSON-LD.

The Schema Types Worth Adding First

Schema.org lists hundreds of types, but Google only uses a subset for search features. Start with the types that match your main content.

Schema typeUse it onWhat it can support
OrganizationHomepage or about pageLogo and company details in knowledge panels
Article / BlogPostingBlog posts and newsHeadline, image and date understanding
BreadcrumbListAny page in a hierarchyBreadcrumb trail in place of the URL
Product with Offer and ReviewProduct pagesPrice, availability and review stars
LocalBusinessLocation or contact pagesAddress, hours and business details
EventEvent pagesEvent dates and venue in search
RecipeRecipe postsImage, cook time and ratings
VideoObjectPages with a main videoVideo thumbnails and key moments

Types Google has limited or retired

Google changes which rich results it shows. In August 2023 it limited FAQ rich results to well known, authoritative government and health sites and stopped showing HowTo rich results. In 2025 it retired several less used features, including Claim Review, Estimated Salary, Special Announcement and Vehicle Listing. FAQ markup is still valid Schema.org, and I still use it to describe question and answer content clearly, but I never promise a client FAQ snippets in Google.

Match the type to the page

Mark up what the page is really about. A service page is not a Product, a blog post is not a Recipe, and a review you wrote about your own business is not eligible for review stars. Mismatched types are one of the most common reasons structured data gets ignored.

Schema Markup Examples You Can Copy

Replace the sample values with your own facts. Every property you add must match what visitors can see on the page.

Article schema example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Schema Markup for SEO: A Plain Guide With Examples",
  "image": "https://example.com/images/schema-guide.webp",
  "datePublished": "2026-12-05",
  "dateModified": "2026-12-05",
  "author": {
    "@type": "Person",
    "name": "Talha Salman",
    "url": "https://talhasalman.com/about/"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Example Media",
    "logo": { "@type": "ImageObject", "url": "https://example.com/logo.png" }
  }
}
</script>

Organization schema example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Agency",
  "url": "https://example.com/",
  "logo": "https://example.com/logo.png",
  "sameAs": [
    "https://www.linkedin.com/company/example-agency",
    "https://x.com/exampleagency"
  ]
}
</script>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Blog", "item": "https://example.com/blog/" },
    { "@type": "ListItem", "position": 2, "name": "Technical SEO", "item": "https://example.com/blog/technical-seo/" },
    { "@type": "ListItem", "position": 3, "name": "Schema Markup" }
  ]
}
</script>

How to Add Schema Markup to Your Site

How to add schema markup in 5 steps: pick the type, write the code, add it, test it and monitor it
The same five steps work for any schema type.

Use a schema markup generator

A free schema markup generator saves typing and keeps the JSON syntax valid. You pick a type, fill in a form and copy the JSON-LD it produces. Merkle’s free JSON-LD schema markup generator on technicalseo.com covers the common types, and many SEO tools include one. Always read the output before you paste it, because generators only know what you type into them.

Add schema in WordPress

SEO plugins such as Rank Math and Yoast output Organization, WebSite, Article and BreadcrumbList schema automatically, and Rank Math lets you choose a schema type per post. For a type your plugin does not support, paste the JSON-LD into a Custom HTML block or add it to the template with a code snippet. Avoid running two plugins that output the same schema, because duplicate and conflicting markup is a common audit finding.

Test and validate before you publish

Run every new template through the Rich Results Test. It shows which Google features the page is eligible for, plus errors and warnings. Fix errors first, because they block eligibility, then fill in recommended properties that clear the warnings. The Schema Markup Validator at validator.schema.org checks general Schema.org syntax, including types Google does not use for rich results.

Monitor in Search Console

After launch, use the URL Inspection tool to confirm Google found the markup, then watch the enhancement reports for each type. A theme update or plugin change can break schema across hundreds of pages at once, so I check these reports monthly as part of my technical SEO checklist.

Common Schema Markup Mistakes

Marking up content visitors cannot see

Google’s guidelines say structured data must describe content that is on the page. Hidden reviews, prices that differ from the visible price or FAQ answers that only exist in the code can lead Google to ignore the markup, and spammy structured data can lead to a manual action that removes rich result eligibility.

Missing required properties

Each Google feature has required and recommended properties. A Product without an offer, review or aggregate rating will not qualify for a product snippet, and an Event without a start date fails. The Rich Results Test lists exactly what is missing.

Treating schema as a one time job

Prices change, events end, authors leave and Google updates its supported features. Review your markup when you redesign templates, and keep it in line with the rest of your on-page SEO so titles, headings and structured data all describe the same page.

Schema Markup Checklist

  • Pick the type that matches the main content of each template.
  • Write it in JSON-LD with every required property filled in.
  • Use only facts that visitors can see on the page.
  • Test each template with the Rich Results Test before launch.
  • Confirm with URL Inspection and monitor the enhancement reports monthly.
  • Remove duplicate schema output from overlapping plugins.

If you want structured data handled as part of a full audit, my technical SEO service covers schema setup, validation and fixes across your templates. You can also check how your title and description will look in search with the free SERP preview tool.

FAQ

What is schema markup in simple terms?

Schema markup is code you add to a page to tell search engines what the content is, such as an article, a product, a business or an event. It uses the shared Schema.org vocabulary, and Google reads it to understand the page and decide whether it can show a rich result.

Is schema markup a ranking factor?

Google does not treat schema markup as a direct ranking factor. It helps Google understand your content and can make a page eligible for rich results, which can improve click-through rate. The page still needs good content and links to rank.

Which schema markup format should I use?

Use JSON-LD. Google supports JSON-LD, Microdata and RDFa, but it recommends JSON-LD because it sits in one script block, stays separate from your visible HTML and is the easiest format to maintain.

Do I need a plugin to add schema markup in WordPress?

No, but a plugin makes it easier. SEO plugins such as Rank Math and Yoast add Article, Organization and breadcrumb schema automatically, and you can paste custom JSON-LD into a Custom HTML block for any type the plugin does not cover.

How do I check if my schema markup works?

Paste the URL or code into Google's Rich Results Test to see which rich results the page is eligible for and any errors. Use the Schema Markup Validator for general Schema.org checks, and watch the enhancement reports in Search Console after the page is live.

Written by Talha Salman. Last reviewed on 5 December 2026. Read how guides are researched and kept up to date on the About page.