Schema Markup: A Practical Guide to Structured Data

By Simon White ·

Schema markup is structured data, written with the schema.org vocabulary, that describes what a page and the business behind it are in a format machines read directly. Unlike visible copy, it labels facts explicitly (business name, author, price), which can make pages eligible for rich results and helps search systems understand you.

It is one of the few technical SEO tasks where a small amount of careful work pays off across the whole site. It is also one of the easiest to overdo. This guide covers the format to use, the core types most business sites need, how to connect them with @graph and @id, and how to validate the result. If your interest is specifically in schema for answer engines and featured snippets, read schema for featured snippets alongside this one. Both sit under the wider technical SEO guide.

What is schema markup?

Schema markup is code that uses the shared schema.org vocabulary to describe entities such as organizations, people, products, articles and events. Google Search supports three formats: JSON-LD, Microdata and RDFa. Google says all three are fine when implemented correctly, but it recommends JSON-LD where your setup allows it.

Why use JSON-LD?

JSON-LD keeps structured data in one block of code, separate from your visible HTML, so it is easier to write, read and maintain. Microdata and RDFa are attributes woven through the page markup, which means a theme change or page builder edit can quietly break them.

A minimal JSON-LD block for a local business looks like this:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Example Heating and Air",
  "url": "https://www.example.com/",
  "telephone": "+1-555-555-0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main St",
    "addressLocality": "Springfield",
    "addressRegion": "CA",
    "postalCode": "90000",
    "addressCountry": "US"
  }
}
</script>

Each block names its context (schema.org), a type, and properties. Types are arranged in a hierarchy; for example, LocalBusiness is a kind of both Organization and Place, and has more specific subtypes for many trades.

Put it in the HTML your server sends. Most sites place it in the head through their CMS or SEO plugin. If it is injected by scripts, test it the way the JavaScript SEO guide describes.

Which schema types should I use?

Use the types that describe what your pages genuinely are, starting with the business itself and the main page templates. For most business sites, that is a short list:

TypeWhere it goesWhy
Organization or LocalBusinessHome page or about pageNames the business, logo, contact details and profiles. Google says this markup can help it choose your logo and understand who you are
WebSiteHome pageDefines the site as an entity and links it to the publisher
WebPageEvery pageTies each page to the site and to its main content
BreadcrumbListPages with breadcrumbsShows the page’s position in the site hierarchy
Article or BlogPostingBlog posts and guidesIdentifies the headline, author, publisher and dates
PersonAuthor and team pagesDescribes authors and links them to the organization
Product and OfferProduct pagesPrice, availability and reviews where you sell online
ServiceService pagesValid schema.org vocabulary for describing what you offer; Google does not list a rich result for it
EventEvent pagesDates, location and tickets for real events

Google recommends placing Organization markup on your home page or a single page that describes your organization, not on every page. Local businesses should pick the most specific LocalBusiness subtype that fits. The local SEO guide covers how that fits with your Business Profile.

Person markup supports the author information you show on the page. The author bio guide covers what that page should say.

What about FAQ and HowTo markup?

Be realistic about these. In 2023 Google announced that FAQ rich results would only be shown for well-known, authoritative government and health websites, and it later stopped showing HowTo rich results altogether. Google also said there is no need to remove existing markup, because unused structured data causes no problems. For most businesses, FAQ markup is no longer a route to a bigger search listing.

What are @graph and @id?

@graph lets you describe several connected entities in one JSON-LD block, and @id gives each entity a unique identifier so others can reference it. Both are part of the JSON-LD 1.1 W3C Recommendation, which defines @id as the way to uniquely identify node objects with IRIs.

Without them, sites often end up with several disconnected blocks: one for the organization from the theme, one for the article from a plugin, and an author name typed as plain text. With them, you can say this article was written by this person, who works for this organization, which publishes this website, using one consistent identifier for each.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://www.example.com/#organization",
      "name": "Example Heating and Air",
      "url": "https://www.example.com/",
      "logo": "https://www.example.com/images/logo.png"
    },
    {
      "@type": "WebSite",
      "@id": "https://www.example.com/#website",
      "url": "https://www.example.com/",
      "name": "Example Heating and Air",
      "publisher": { "@id": "https://www.example.com/#organization" }
    },
    {
      "@type": "WebPage",
      "@id": "https://www.example.com/blog/furnace-noises/#webpage",
      "url": "https://www.example.com/blog/furnace-noises/",
      "isPartOf": { "@id": "https://www.example.com/#website" }
    },
    {
      "@type": "BlogPosting",
      "@id": "https://www.example.com/blog/furnace-noises/#article",
      "headline": "Why Is My Furnace Making Noise?",
      "mainEntityOfPage": { "@id": "https://www.example.com/blog/furnace-noises/#webpage" },
      "author": { "@id": "https://www.example.com/about/#person" },
      "publisher": { "@id": "https://www.example.com/#organization" }
    },
    {
      "@type": "Person",
      "@id": "https://www.example.com/about/#person",
      "name": "Jordan Example",
      "worksFor": { "@id": "https://www.example.com/#organization" }
    }
  ]
}
</script>

A few practical rules for @id:

  • Use a full URL plus a fragment, such as https://www.example.com/#organization. It does not need to resolve to anything; it is a name, not a link.
  • Keep each identifier identical everywhere it appears, across every page.
  • Define the full Organization once, then reference it by @id elsewhere instead of repeating its details.
  • Match the visible page. If the page names an author, the markup should name the same author.

Consistent entities matter for site architecture too: your breadcrumb trail, internal links and structured data should all describe the same hierarchy.

How do I add schema markup to my site?

Work template by template rather than page by page, so the markup stays consistent as the site grows:

  1. List your page templates: home, about, service, location, blog post, product, contact.
  2. Decide the main type for each template and the entities it should reference by @id.
  3. Check what your theme and SEO plugin already output, and switch off duplicate blocks so each entity is defined once.
  4. Fill in the site-wide Organization or LocalBusiness details once, using the same name, address and phone number shown on the site.
  5. Add or adjust markup for each template, then test one example URL of each before rolling it out.
  6. Recheck after theme updates, plugin changes or redesigns, which are the usual moments markup breaks.

How do I validate schema markup?

Validate for two different things: whether the markup is valid schema.org, and whether it meets Google’s requirements for a rich result. Use the right tool for each:

  1. Schema Markup Validator. The Schema Markup Validator checks your code against the schema.org vocabulary for any type, including ones Google has no rich result for.
  2. Rich Results Test. Google’s Rich Results Test shows which Google rich results your page is eligible for and flags missing required properties. Google recommends it during development.
  3. URL Inspection. In Search Console, this confirms whether Google found structured data on the live, indexed page.
  4. Rich result status reports. After launch, Google recommends monitoring these Search Console reports, because template or serving changes can break markup across many pages at once.

What rules does Google set for structured data?

Google’s structured data guidelines come down to honesty and visibility:

  • Do not mark up content that readers cannot see on the page.
  • Do not use structured data to mislead, such as fake reviews or details that do not match the page.
  • Include the required properties for any rich result you want to be eligible for.
  • Accept that eligibility is not a guarantee. Google decides whether to show a rich result.

Breaking the guidelines can lead to a structured data manual action. Google says that removes a page’s eligibility for rich results but does not affect its ranking in web search.

Does schema help with AI answers and rankings?

Google documents structured data as a way to understand page content and become eligible for rich results; it does not describe it as a direct ranking boost. Whether schema helps AI assistants choose sources is not documented by most providers. My opinion is that clear, consistent entity markup is cheap insurance: it removes ambiguity about who you are and what each page covers, which can only help systems that try to understand the web. Just do not expect markup to rescue thin content.

FAQ

What is schema markup?

Schema markup is structured data using the schema.org vocabulary that describes your business, pages and content for machines. Google recommends adding it as JSON-LD.

Which types should I use?

Start with Organization or a specific LocalBusiness type on your home or about page, WebSite, WebPage and BreadcrumbList across the site, and Article or BlogPosting with Person for authors. Add Product, Event or other types only where they describe real content.

Does schema markup guarantee rich results?

No. Correct markup makes a page eligible, but Google decides whether to show a rich result based on many factors. Some types, such as FAQ and HowTo, are now heavily restricted or no longer shown.

Do I need a plugin to add schema?

No, but on WordPress an SEO plugin usually handles the basics. Check its output in the validators, remove duplicate blocks from themes or other plugins, and add custom JSON-LD only where the plugin falls short.

If your structured data is fragmented, duplicated or failing validation, I can map it into one clean graph as part of my technical SEO services. Contact me to talk about your site.

About the author

Simon White

Simon White is an SEO & AI consultant based in Encinitas, California, and co-founder of the digital marketing agency Local Blitz, which has served clients since 2009. A former electrical engineer with more than 15 years in SEO, he now helps businesses get found in Google and in AI answers through SEO, answer engine optimization (AEO) and generative engine optimization (GEO).

More about Simon →

Need help with this?

Get a clear SEO plan for your business

Simon has spent more than 15 years helping businesses rank and grow. Tell him where you are now and where you want to be.