What Is Schema Markup? A Beginner’s Guide with JSON-LD Examples (2026)
What is schema markup? See how it works, copy 5 ready JSON-LD examples, create it with AI and test it. Updated for Google's 2026 changes.
On this page
- What Is Schema Markup?
- Why Does Schema Markup Matter? (The Honest Answer)
- The 3 Formats of Schema Markup
- Common Types of Schema Markup
- 5 Schema Markup Examples (JSON-LD You Can Copy)
- How to Add Schema Markup to Your Website
- How to Test Schema Markup Before You Publish
- 7 Common Schema Markup Mistakes to Avoid
- Conclusion
- Want to Learn SEO Like This, Hands-On?
- FAQs about Schema Markup

Quick answer: Schema markup is a small piece of code, usually written in JSON-LD, that labels your page content for search engines. It tells Google “this is a price”, “this is a review rating” or “this is an address”, so your page can be understood correctly and shown with rich results like stars and prices.
You have probably seen schema markup without knowing its name. For example, search for a recipe and the result shows a star rating, a cooking time and a calorie count before you click. Similarly, look up a local dentist and you’ll see opening hours and reviews right on the results page. Those extra details don’t appear by luck.
If you are new to SEO, the term can sound scary, like something only developers deal with. It isn’t. Once you get the idea, it’s one of the most practical, beginner-friendly skills in digital marketing.
In this guide you’ll learn what schema markup is, why it still matters after Google’s 2026 changes, 5 ready-to-copy JSON-LD examples, how to create schema with AI, and how to test it. Let’s break it down the way I’d explain it to a friend.

What Is Schema Markup?
Schema markup is a small piece of code you add to a web page that tells search engines exactly what your content means.
Here is the problem it solves. When Google visits your page, it reads the words, but it doesn’t always understand them the way a human does. Imagine your page says “Apple”. Is that the fruit, the company, or the name of someone’s dog? A human works it out from context. A search engine has to guess.
Schema markup removes the guessing. It’s like putting a clear label on each important detail on your page, for example:
- Business name
- Phone number
- Price
- Review rating
- Event date
Think of the nutrition label on a packet of biscuits. You could read the whole packet to work out what’s inside, but the label gives you the facts in a standard, quick format. Schema markup is that label for your web page, written for search engines instead of shoppers.
Where does schema come from?

Schema markup follows a shared vocabulary called Schema.org. It was launched in 2011, when Google, Bing, Yahoo and Yandex agreed to use one common language for describing web content.
That’s why it works so well. Instead of every search engine inventing its own system, there is one dictionary they all understand. Schema.org lists hundreds of types, like Person, Product, Recipe, Event, LocalBusiness and Article. Each type has its own properties, such as name, address, price and rating.
You don’t need to memorise any of it. You just need to know the dictionary exists, and that you can look things up whenever you need to.
Schema markup vs structured data vs JSON-LD
These three terms get mixed up all the time, so here is the simple version:
| Term | What it means | Example |
|---|---|---|
| Structured data | Any information organised in a fixed, machine-readable format | A table of prices, a product feed |
| Schema markup | Structured data that uses the Schema.org vocabulary | “@type”: “Product” with a price |
| JSON-LD | The coding format most people use to write schema markup | <script type="application/ld+json"> block |
In short: JSON-LD is how you write it, Schema.org is the dictionary you use, and structured data is the bigger idea behind both.
Why Does Schema Markup Matter? (The Honest Answer)

Let’s clear up a common myth first. Schema markup is not a direct ranking factor. Adding it will not push your page from position 8 to position 1. Anyone who promises that is selling you something.
What schema does do is help in three real ways:
- It helps search engines understand your content. Better understanding means your page can be matched to the right searches more accurately.
- It can make your result stand out. Schema can make you eligible for rich results such as star ratings, product prices, event dates, breadcrumbs and images. Eligible does not mean guaranteed, because Google decides what to show.
- It can bring more clicks. A listing with stars and useful details usually gets more attention than a plain blue link.
The click benefit is backed by real numbers. In Google’s own guide to structured data, Rotten Tomatoes reported a 25% higher click-through rate on pages with structured data, and Nestlé saw 82% higher click-through on pages shown as rich results. More clicks from the same ranking position is a real win.
What changed in 2025–26 (read this before you plan)
Google has cut back the rich results it shows, so some older guides are now out of date:
| Date | Change |
|---|---|
| 7 May 2026 | FAQ rich results stopped showing in Google Search for all sites. The documentation was removed in June 2026. |
| Jan 2026 | Practice Problem rich results removed. |
| Sep 2025 | Course Info, Estimated Salary, Learning Video, Special Announcement and Vehicle Listing removed. |
| 2023 | HowTo rich results removed. |
This doesn’t mean schema is dead. Product, LocalBusiness, Article, Review, Event, Recipe, Video, Breadcrumb and Organization markup are still supported. FAQ markup is still valid Schema.org code and won’t hurt you, but don’t expect the dropdowns in Google anymore.
Schema markup and AI search
Search is moving toward AI answers, such as Google’s AI Overviews, ChatGPT and Perplexity. Here is what we know so far, without the hype:
- Google’s systems read structured data, and Gemini appears to use Google’s index, schema included, when it checks its answers.
- Many AI crawlers don’t run JavaScript. If your schema is injected by a script or Google Tag Manager, they may never see it. Put JSON-LD straight into the page HTML.
- Organization and Person schema help search engines connect your brand to the right entity. That makes it easier for AI tools to describe you correctly.
Schema won’t make an AI tool quote you by itself. Clear, well-written content still does most of the work, as explained in this post on what makes content easier for AI search engines to understand. If you want the practical steps for showing up in AI answers, this GEO guide from Digital Discovery walks through them.
I’m learning this at Digital Discovery Institute in Mohali, where AI search (GEO) and schema are taught as part of the AI SEO & GEO course.
The 3 Formats of Schema Markup
Schema can be written in three formats. You’ll hear all three names, so here is the quick version:
- JSON-LD: a block of code that sits separately from your visible content. Google recommends it, and it’s the one beginners should use.
- Microdata: code mixed directly into your HTML tags. It works, but it gets messy.
- RDFa: similar to Microdata, and rarely used by beginners.
I’ll stick to JSON-LD for the rest of this guide. It’s cleaner, easier to read and easier to fix when something breaks.
Common Types of Schema Markup
You don’t need every type on one site. Pick the ones that match your content:
- Organization: your company’s name, logo, website and social profiles.
- LocalBusiness: shops, clinics, salons, institutes and restaurants, with address, phone number and opening hours.
- Article / BlogPosting: news and blog content, with headline, author, publish date and image.
- Product: online stores, with price, availability, brand and reviews.
- Review / AggregateRating: the star ratings you see in search results.
- Recipe: cooking time, ingredients, calories and ratings.
- Event: concerts, webinars and workshops, with date, venue and ticket details.
- BreadcrumbList: the page path (Home > Blog > This Article).
- VideoObject: video title, thumbnail, length and upload date.
- Person: authors, experts and personal brands.
- FAQPage: questions and answers. Still valid code, but Google no longer shows FAQ rich results (see above).
Which schema should your website use?
| Type of website | Start with | Add later |
|---|---|---|
| Blog or news site | Article / BlogPosting, Person (author), BreadcrumbList | Organization, VideoObject |
| Local business (clinic, salon, institute, restaurant) | LocalBusiness (or a subtype like Dentist), Organization | Review, Event |
| Online store | Product with Offer, BreadcrumbList, Organization | AggregateRating, merchant return policy |
| Coaching or training institute | Organization or EducationalOrganization, LocalBusiness, Course | Event (for demo classes), VideoObject |
| Personal brand or freelancer | Person, ProfilePage, WebSite | Article |
| Events or webinars | Event, Organization | VideoObject |
Always choose the most specific type that honestly fits. A dental clinic is better marked up as “Dentist” than as a general “LocalBusiness”.
5 Schema Markup Examples (JSON-LD You Can Copy)

Code feels scary until you actually read it. Then you realise it’s just labels and values. Replace every sample detail with your own before you use any of these.
Example 1: Local business
Say you run a dental clinic called Sunrise Dental in Chandigarh:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Dentist",
"name": "Sunrise Dental Clinic",
"image": "https://www.example.com/clinic.jpg",
"telephone": "+91-98765-43210",
"url": "https://www.example.com",
"address": {
"@type": "PostalAddress",
"streetAddress": "SCO 12, Sector 41",
"addressLocality": "Chandigarh",
"postalCode": "160036",
"addressCountry": "IN"
},
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"opens": "10:00",
"closes": "19:00"
}
}
</script>
Let’s read it like English. @context says “we’re using the Schema.org dictionary”. @type says “this is a Dentist”. Everything after that is simple facts: name, phone, address and hours. Nothing here is magic.
Example 2: Blog article
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "What Is Schema Markup? A Beginner's Guide",
"image": "https://www.example.com/schema-guide.jpg",
"datePublished": "2026-11-30",
"dateModified": "2026-11-30",
"author": {
"@type": "Person",
"name": "Your Name",
"url": "https://www.example.com/about/"
},
"publisher": {
"@type": "Organization",
"name": "Your Website Name",
"logo": "https://www.example.com/logo.png"
}
}
</script>
It says: this is a blog post, here’s the headline, here’s who wrote it, and here’s when it went live and was last updated.
Example 3: Product
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Blue Running Shoes",
"image": "https://www.example.com/shoes.jpg",
"description": "Lightweight running shoes for daily training.",
"brand": { "@type": "Brand", "name": "StrideFit" },
"offers": {
"@type": "Offer",
"price": "2499",
"priceCurrency": "INR",
"availability": "https://schema.org/InStock"
}
}
</script>
One rule applies to every example: the schema must match what visitors can see on the page. If your schema says the shoes cost ₹2,499 but the page says ₹3,999, you’re asking for trouble.
Example 4: Organization with social profiles (sameAs)
Most beginner guides skip this one, but it’s one of the most useful. It tells Google which social profiles and listings belong to your brand, so it can connect them into one entity. Put it on your homepage or About page.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Your Brand Name",
"url": "https://www.example.com",
"logo": "https://www.example.com/logo.png",
"sameAs": [
"https://www.facebook.com/yourbrand",
"https://www.instagram.com/yourbrand",
"https://www.linkedin.com/company/yourbrand",
"https://www.youtube.com/@yourbrand"
]
}
</script>
Double-check every sameAs link. A wrong link can make Google connect your site to someone else’s brand.
Example 5: Connecting types with @graph
A real page often describes more than one thing: the article, its author and the business behind it. Instead of three separate blocks, you can join them in one @graph and link them with @id:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "Your Brand Name",
"url": "https://www.example.com"
},
{
"@type": "Person",
"@id": "https://www.example.com/#author",
"name": "Your Name"
},
{
"@type": "BlogPosting",
"headline": "What Is Schema Markup?",
"author": { "@id": "https://www.example.com/#author" },
"publisher": { "@id": "https://www.example.com/#organization" }
}
]
}
</script>
The @id works like a name tag. The blog post points to the author and the publisher by their tags, so Google sees how all three are connected. Plugins like Yoast and Rank Math build this graph for you automatically.
How to Add Schema Markup to Your Website
Good news: there’s more than one route, and you don’t have to be a coder.
- Use a plugin (easiest). On WordPress, SEO plugins like Rank Math, Yoast SEO or Schema Pro add schema for you. You fill in a few fields and the plugin writes the code in the background. This is the best starting point for beginners, and this step-by-step guide to adding schema markup on WordPress shows the exact settings.
- Use a generator. Free schema generator tools let you fill in a form, then give you the JSON-LD code to copy and paste into your page.
- Use AI to write it. ChatGPT, Gemini or Claude can write JSON-LD in seconds (see the prompt below).
- Add the code manually. Paste the JSON-LD block into the
<head>or<body>of your page, or into a custom HTML block if you use a page builder like Elementor. This gives you the most control, and it’s the best way to really learn. - Ask a developer. For big sites with hundreds of pages, a developer can add schema automatically through page templates.
Whichever route you choose, make sure the JSON-LD is in the page’s HTML when it loads. Schema added later by JavaScript or Google Tag Manager works for Google, but many AI crawlers can’t see it.
How to create schema markup with AI (ready prompt)
AI is great at writing schema, but it also makes mistakes, like inventing properties or adding details that aren’t on your page. Use a prompt like this, then always test the result:
Act as a technical SEO expert. Write valid JSON-LD schema markup for the page below. Use the most specific Schema.org type that fits. Only use facts I give you, and don’t invent reviews, ratings or prices. Mark any field I haven’t given you as “TODO”. Page type: [local business / blog post / product]. Page details: [paste name, address, phone, hours, price, author, date, etc.].
Then paste the output into a testing tool (next section) before it goes anywhere near your live site. AI writes the first draft. You check it.
See what schema your competitors use
This is a trick most beginners don’t know. Open a competitor’s page in Google’s Rich Results Test or the Schema Markup Validator, paste the URL, and you’ll see every schema type they use. You can also right-click the page, choose “View page source”, and search for application/ld+json. If the top-ranking pages for your keyword all use Product and Review schema, that tells you what you should be adding too.
How to Test Schema Markup Before You Publish

Never paste code and just hope it works. A single missing comma can break the whole block. There are free tools for checking:
- Rich Results Test (Google): shows whether your page is eligible for the rich results Google still supports, and flags errors and warnings.
- Schema Markup Validator: checks that your code is valid Schema.org markup, including types Google doesn’t show as rich results (like FAQPage).
- Google Search Console: after your page is live, the URL Inspection tool confirms Google found your schema, and the rich result reports flag problems across your site.
Make testing a habit. It takes two minutes and saves a lot of frustration.
How to measure if schema is working
In Search Console, open the Performance report and filter by “Search appearance” to see clicks and impressions for your rich results. Compare the click-through rate of pages with schema to similar pages without it over a few weeks. If you’re not sure what these numbers mean, start by learning the four basics in Search Console: impressions, clicks, CTR and average position.
7 Common Schema Markup Mistakes to Avoid
I’d rather you learn these now than the hard way.
- Marking up content that isn’t on the page. Schema must describe what users can actually see. Hidden or made-up details break Google’s guidelines and can lead to a manual action.
- Fake or self-written reviews. Don’t add star ratings you wrote yourself. Reviews must be genuine, and Google’s rules now name fake and undisclosed incentivised reviews directly.
- Using the wrong type. Calling a blog post a “Product” or an agency a “Restaurant” confuses search engines instead of helping them.
- Letting information go out of date. Changed your phone number, price or opening hours? Update the schema too. Old data is worse than no data.
- Copy-pasting code without changing the details. It happens more than you’d think. Always replace the sample names, addresses and URLs.
- Adding schema only through JavaScript. Google can read it, but many AI crawlers can’t. Keep JSON-LD in the page HTML.
- Expecting instant results. Even with perfect markup, rich results can take weeks to appear, and sometimes they never do. That’s normal.
Conclusion
Schema markup sounds technical, but at heart it’s a very human idea: be clear about who you are and what you offer. Search engines and AI tools are smart, but they aren’t mind readers. When you spell things out, you make their job easier, and that often makes your listing more useful to the people searching.
You don’t need to master every schema type to get started. Learn one or two, add them carefully, test them, and build from there. Nobody gets this right on the first try, and that’s fine.
If you’re starting out in SEO, this is a skill worth picking up early. It’s practical, it’s measurable, and not many beginners bother with it, so it can help you stand out. Go ahead, open one of your pages, and give it a label.
Want to Learn SEO Like This, Hands-On?
If this guide made you curious about SEO, the best way to learn is by doing it. I’m training at Digital Discovery Institute in Mohali, and here’s why I’d recommend it:
- Real work, not dummy websites. You build your own live website and work on real tasks, with a trainer checking your work.
- AI in every module. You learn to use ChatGPT, Gemini and Claude for SEO, ads and content, and how to check their answers instead of trusting them blindly.
- Trainers who actually do the work. The institute is the training arm of SEO Discovery, an agency with 22+ years of experience.
- Placement support. You get portfolio help, resume and LinkedIn guidance, mock interviews and introductions to hiring partners. They’re upfront that they don’t promise a job.
- Flexible options. Classroom batches in Mohali or live online classes, 2 hours a day, so you can join while studying or working.
- Trusted by students. 10,000+ students trained and a 4.7★ rating from 171 Google reviews.
Not sure if it’s right for you? Book a free demo class or a free 30-minute counselling call. No payment needed.
FAQs about Schema Markup
What is schema markup in simple words?
It’s a small piece of code you add to a web page that labels your content for search engines. It tells them “this is a phone number”, “this is a price” or “this is a review rating”, so they don’t have to guess what your page means.
Does schema markup improve Google rankings?
Not directly. Google doesn’t treat it as a ranking factor, so it won’t push your page up on its own. It helps search engines understand your page and can make you eligible for rich results like star ratings and prices, which can bring more clicks.
What is the difference between schema markup and structured data?
Structured data is the general idea of organising information in a machine-readable format. Schema markup is structured data that uses the Schema.org vocabulary. People often use the two terms interchangeably.
Which schema format should a beginner use?
JSON-LD. Google recommends it, and it sits in its own block of code instead of being mixed into your page’s HTML. That makes it easier to read, add and fix.
Where do I put JSON-LD schema code?
In the <head> or the <body> of the page. Google accepts both. On WordPress, a plugin like Rank Math or Yoast places it for you.
Do I need to know coding to add schema?
No. WordPress plugins like Rank Math, Yoast SEO or Schema Pro create it through simple fields. Free generators and AI tools like ChatGPT can also write the code for you to copy and paste.
Can ChatGPT write schema markup?
Yes. ChatGPT, Gemini and Claude can write JSON-LD quickly, but they sometimes invent properties or details. Give them only real facts from your page, and always test the code before publishing.
Is FAQ schema still worth adding in 2026?
Google stopped showing FAQ rich results on 7 May 2026, so you won’t get the dropdowns in search. The markup is still valid and can help machines read your Q&A, but don’t add it expecting more clicks from Google.
How do I check if my schema is working?
Use Google’s Rich Results Test to see if your page is eligible for rich results, and the Schema Markup Validator to check the code is valid. After publishing, Google Search Console shows whether Google found the markup and reports any errors.
How long does it take for rich results to appear?
It can take days or weeks after Google recrawls your page, and Google decides whether to show them at all. Correct markup makes you eligible, but it doesn’t guarantee rich results.







