Ram Nagar, Coimbatore · Offline + Live Online Batches +91 98652 36003 info@searchxacademy.com

SEO Guides

Schema Markup Guide: Structured Data for Beginners

Schema markup is code you add to a page to describe its content in a standard vocabulary, so search engines can understand exactly what it contains: a business, an article, a product, an event. Correct markup can make a page eligible for rich results such as product prices or breadcrumbs. This guide explains JSON-LD, the types worth using in 2026 and how to test them.

Key takeaways

  • Schema markup describes your content to machines using the schema.org vocabulary, and Google recommends writing it in JSON-LD.
  • Valid markup makes a page eligible for rich results but never guarantees them, and it is not a direct ranking boost.
  • FAQ rich results are limited to well-known, authoritative government and health sites, HowTo rich results were deprecated in 2023 and the sitelinks search box was retired in 2024.
  • Test every change with Google's Rich Results Test and the Schema Markup Validator, then monitor the rich result reports in Search Console.
  • Markup must match what users can see on the page; marking up hidden, misleading or fake content can lead to a manual action.
On this page
  1. What schema markup is and what it is not
  2. JSON-LD, Microdata and RDFa: which format to use
  3. How a JSON-LD block is structured
  4. Schema types worth adding in 2026
  5. Rich results that are restricted or retired
  6. Copy-ready JSON-LD examples
  7. Worked example: a schema plan for a hypothetical clinic site
  8. How to test and validate structured data
  9. Adding schema markup on WordPress and custom sites
  10. Structured data guidelines and common mistakes
  11. Schema markup and AI-powered search
  12. FAQs

What schema markup is and what it is not

Schema markup is structured data that labels the important facts on a page, such as a business's address, an article's author or a product's price, using the shared vocabulary published at schema.org. It turns information humans read easily into information machines can read without guessing.

It is not a ranking shortcut. Google has been consistent that structured data helps it understand pages and can make them eligible for enhanced appearances, called rich results, but it does not by itself push a page higher, and eligibility is not a guarantee of display. Treat schema as the final layer of solid technical work, after the items on our technical SEO checklist are in place.

What it can do

Help search engines identify entities and relationships, enable rich results like product snippets and breadcrumbs, and support a consistent picture of your business across search features.

What it cannot do

Fix thin content, guarantee a rich result, override Google's display decisions or make up for a page that does not deserve to rank.

JSON-LD, Microdata and RDFa: which format to use

Use JSON-LD. Google supports all three formats, but it recommends JSON-LD because it sits in a single script block, separate from your visible HTML, which makes it easier to write, maintain and debug.

FormatHow it worksWhen you might see it
JSON-LDA JavaScript-notation block inside a script tag, usually in the head or bodyModern SEO plugins, custom sites, Google's own examples
MicrodataAttributes such as itemscope and itemprop added to existing HTML tagsOlder themes and e-commerce templates
RDFaAttributes such as vocab and property added to HTML tagsSome CMS platforms and publishing systems

How a JSON-LD block is structured

Every JSON-LD block declares the vocabulary (@context), the type of thing being described (@type) and a set of properties with values. Properties can contain other typed objects, which is how you nest an address inside a business or an author inside an article.

Here is the smallest useful example, describing an organisation:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Textiles",
  "url": "https://www.example.com/",
  "logo": "https://www.example.com/images/logo.png",
  "sameAs": [
    "https://www.linkedin.com/company/example-textiles",
    "https://www.instagram.com/exampletextiles"
  ]
}
</script>

A few rules prevent most syntax errors: use straight double quotes, separate properties with commas, leave no comma after the last property, and use absolute URLs. Property names are case-sensitive, so telephone works and Telephone does not.

Schema types worth adding in 2026

Add the types that genuinely describe your pages, starting with the ones that support a Google feature or clarify who you are. Google's Search Gallery lists every structured data feature it currently supports, with required and recommended properties for each.

TypeUse it onWhat it supports
OrganizationHome or about page (once per site)Logo, official name, contact details and profiles for your brand
LocalBusiness (or a subtype such as Dentist, Restaurant, Store)Location or contact pagesAddress, phone, opening hours and area details for a physical business
WebSiteHome pageHelps Google show your preferred site name
BreadcrumbListEvery page below the home pageBreadcrumb trail shown in search results
Article / BlogPostingBlog posts and news articlesClear headline, dates, images and author information
Product with OfferProduct pagesPrice, availability and review information in product results
EventEvent pagesDate, venue and ticket details in event results
VideoObjectPages with a main videoVideo results and key moments
JobPostingIndividual job openingsListing in Google's job search experience

Review markup deserves a special note: reviews a business publishes about itself on its own site (self-serving reviews for LocalBusiness or Organization) are not eligible for review stars. Star ratings are most relevant for product, recipe and similar content, and the reviews must be genuine and visible on the page.

Rich results that are restricted or retired

Several once-popular rich results no longer appear for most sites, and many outdated tutorials still recommend them. Knowing which ones have changed saves you from adding markup for a feature that will not show.

FeatureStatusWhat to do
FAQ rich results (FAQPage)Since August 2023, shown only for well-known, authoritative government and health websitesKeep FAQs on the page for users; do not expect the expandable FAQ result
HowTo rich results (HowTo)Deprecated in 2023; no longer shown on mobile or desktopWrite clear numbered steps in the content instead
Sitelinks search box (WebSite SearchAction)Retired in November 2024Keep WebSite markup for your site name; the search box itself will not appear
Note: Leaving existing FAQPage, HowTo or SearchAction markup on your pages does no harm, but do not invest time adding it for a visual result. Google periodically retires or narrows rich result types, so check the Search Gallery before starting any new structured data project.

Copy-ready JSON-LD examples

The examples below use a hypothetical bakery in RS Puram, Coimbatore. Replace every value with your real details, delete properties you cannot fill truthfully, and keep the markup consistent with what the page shows.

LocalBusiness example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Bakery",
  "name": "Example Bakes RS Puram",
  "url": "https://www.example.com/",
  "image": "https://www.example.com/images/storefront.jpg",
  "telephone": "+91-00000-00000",
  "priceRange": "₹₹",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "12 Example Street, RS Puram",
    "addressLocality": "Coimbatore",
    "addressRegion": "Tamil Nadu",
    "postalCode": "6410XX",
    "addressCountry": "IN"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
      "opens": "08:00",
      "closes": "21:00"
    }
  ]
}
</script>

Bakery is a subtype of LocalBusiness on schema.org; choose the most specific type that fits your business. Make sure the name, address and phone match your Google Business Profile exactly, a point our local SEO guide for Coimbatore businesses covers in depth.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.example.com/" },
    { "@type": "ListItem", "position": 2, "name": "Cakes", "item": "https://www.example.com/cakes/" },
    { "@type": "ListItem", "position": 3, "name": "Eggless Cakes" }
  ]
}
</script>

The last item, the current page, can omit the item URL. The breadcrumb trail in your markup should match the visible breadcrumbs on the page.

Article example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to Store Homemade Cakes in Coimbatore's Summer",
  "image": ["https://www.example.com/images/cake-storage.jpg"],
  "datePublished": "2026-04-02T09:00:00+05:30",
  "dateModified": "2026-09-18T10:30:00+05:30",
  "author": {
    "@type": "Person",
    "name": "Example Author",
    "url": "https://www.example.com/about/example-author/"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Example Bakes",
    "logo": { "@type": "ImageObject", "url": "https://www.example.com/images/logo.png" }
  }
}
</script>

Include the Indian time-zone offset (+05:30) in dates, and update dateModified only when you make a meaningful change to the article, not every time you fix a typo.

Connecting entities with @id

When a page carries several blocks, you can give an entity a stable identifier with @id (for example "@id": "https://www.example.com/#organization") and reference it from other blocks instead of repeating its details. The Article's publisher can then simply point to that ID. SEO plugins build this connected "graph" automatically, and it helps search engines understand that the business on every page is one and the same entity.

Worked example: a schema plan for a hypothetical clinic site

Planning schema page by page, before writing any code, keeps markup accurate and avoids duplication. Here is a plan for a hypothetical physiotherapy clinic in Peelamedu with a 20-page website.

PageSchema typesNotes
HomeOrganization (or MedicalBusiness subtype), WebSiteLogo, official name, phone, social profiles; one block reused site-wide via @id
Contact / locationThe most specific LocalBusiness subtype that fitsAddress, hours and phone identical to the Business Profile
Treatment pagesWebPage, BreadcrumbListNo review stars for the clinic's own testimonials (self-serving)
Blog postsBlogPosting, BreadcrumbListNamed author with a real profile page and credentials shown on the page
Exercise video pageVideoObjectThumbnail, upload date and description that match the visible video
CareersJobPosting for each open roleRemove or expire the markup as soon as a role is filled

Notice what is missing: no FAQPage markup expecting a rich result, no aggregate rating built from hand-picked testimonials, and no Product markup on service pages. The plan only describes what the pages genuinely contain, which is exactly what keeps it safe through policy changes.

How to test and validate structured data

Use two tools for two different questions. Google's Rich Results Test tells you whether your markup qualifies for Google's rich results; the Schema Markup Validator tells you whether it is valid schema.org markup in general, including types Google does not use for any feature.

  1. Test the code before publishing. Paste your snippet into the Rich Results Test using the Code tab. Fix every error; review warnings, which flag missing recommended properties.
  2. Validate the vocabulary. Run the same code through the Schema Markup Validator at validator.schema.org to catch misspelled properties or wrong types that Google's test may simply ignore.
  3. Test the live URL. After publishing, test the URL itself. This confirms the markup is present after rendering, which matters when a plugin or tag manager injects it.
  4. Monitor in Search Console. Within days to weeks, rich result reports appear in the left menu (for example Breadcrumbs, Product snippets or Videos) showing valid and invalid items across the site.
  5. Re-check after changes. Theme updates, plugin switches and redesigns often duplicate or break markup, so retest key templates after any release.

Adding schema markup on WordPress and custom sites

On WordPress, a reputable SEO plugin such as Yoast SEO or Rank Math generates a basic graph of Organization, WebSite, WebPage, BreadcrumbList and Article markup automatically. Configure its settings properly (organisation name, logo, social profiles) and you cover the essentials without writing code.

For specialised types such as Event, Product details or a specific LocalBusiness subtype, use the plugin's schema options or add a JSON-LD block through your theme or a code-snippet plugin. On custom-built sites, generate JSON-LD from the same database fields that render the page, so prices, dates and hours can never drift out of sync. Our WordPress website training covers setting this up on a real site.

Common mistake: Running two SEO plugins, or a plugin plus theme-generated markup, produces duplicate and conflicting Organization or Article blocks. Pick one source of truth and switch off the others.

Structured data guidelines and common mistakes

Google's structured data policies come down to honesty: mark up only content that users can see on the page, and make sure it is accurate. Violations can make a page ineligible for rich results or trigger a manual action for spammy structured data.

  • Marking up reviews, ratings or FAQs that do not appear on the page.
  • Adding fake or self-written review stars to your own business.
  • Showing one price in markup and another on the page, or leaving old prices after an update.
  • Using Organization markup with a different name or address from your website footer and Business Profile.
  • Marking up an entire category page as a single Product.
  • Pasting example code without replacing placeholder values.

Structured data helps any machine reader, including AI systems, identify the entities on a page and how they relate: who wrote this, which business this is, what this product costs. Google states that no special markup is required to appear in AI Overviews, but consistent, accurate structured data supports the clear entity signals that AI answers depend on.

The bigger lesson is consistency. Your schema, visible content, Google Business Profile and social profiles should all describe the same business in the same way. Our AI search optimisation guide explains how entity clarity fits into getting cited, and the Google Business Profile guide covers keeping your profile aligned.

Structured data clicks once you write, break and validate it on real pages. In our technical SEO training you add and test schema on a live website, and online stores can see how Product markup fits into a wider plan on the e-commerce training page.

Frequently asked questions

Does schema markup directly improve Google rankings?

No. Google has said structured data is not a direct ranking factor. It helps Google understand your content and can make pages eligible for rich results, which may improve how your listing looks and how often people click it. The ranking itself still depends on relevance, content quality, links and the other signals Google uses.

Why is my valid schema not showing rich results?

Passing the Rich Results Test only means the page is eligible. Google decides whether to show a rich result based on the query, device, page quality and whether the feature is still active for your type of site. Check that the feature is not restricted (FAQ) or retired (HowTo), that the page is indexed, and give Google time to recrawl it.

Can I add schema markup with Google Tag Manager?

Yes, Google can read JSON-LD injected with JavaScript, including through Tag Manager, because it renders pages. However, it is less reliable than markup in the page source: rendering can be delayed, other search engines and tools may not execute the script, and it is easy to forget about. Use it as a stopgap, and test the live URL to confirm Google sees it.

What is the difference between schema.org and structured data?

Structured data is the general idea of describing content in a standard, machine-readable way. Schema.org is the shared vocabulary of types and properties, such as LocalBusiness, address and openingHours, that search engines agreed to use. JSON-LD, Microdata and RDFa are formats for writing that vocabulary into a page. Schema markup is the common name for the result.

Should every page on my site have schema markup?

Most pages benefit from basic markup such as BreadcrumbList, and your home page should carry Organization and WebSite markup. Beyond that, add a type only when it accurately describes the page: Product for products, Article for posts, Event for events. Adding irrelevant types to every page adds maintenance work and risk without any benefit.

Ready to learn digital marketing by doing it?

Weekday evening batches (6–8 PM) · Max 3 students · Offline in Coimbatore or live online · Xcodefix certification