What is schema markup? A plain guide with examples

What schema markup is, an example you can copy, the types worth adding, what it will and won't do for you, and how to check it's working.

The short answer. Schema markup is a small block of code on a web page that describes the facts on it in a format machines read easily: who the business is, where it is, when it's open, what a product costs, who wrote an article. Search engines use it to understand the page and, for some types, to show richer results such as prices, ratings and event dates. It doesn't change what visitors see, and it doesn't lift rankings on its own.

What schema markup is

A page written for people says "We're open 9 to 5 on weekdays" in a sentence. A search engine can usually work that out, but it has to guess. Schema markup states the same fact in a fixed format, so there's nothing to guess: these are the opening hours, this is the phone number, this is the price.

The vocabulary comes from Schema.org, a project started in 2011 by Google, Microsoft, Yahoo and Yandex so that every search engine could read the same labels. It has hundreds of types, from LocalBusiness and Product to Recipe and JobPosting, and each type has its own properties. You'll also hear it called structured data, which is the general term. Schema markup is structured data that uses the Schema.org vocabulary.

What it looks like

Google recommends a format called JSON-LD: a block of code in the page's HTML that visitors never see. Here's a simple version for a local bakery.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Bakery",
  "name": "Example Bakery",
  "url": "https://www.examplebakery.co.uk/",
  "telephone": "+44 1632 960123",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "1 Example Street",
    "addressLocality": "Newport",
    "postalCode": "PO30 0AA",
    "addressCountry": "GB"
  },
  "openingHours": "Tu-Sa 08:00-16:00",
  "servesCuisine": "Bread and pastries"
}
</script>

Each line pairs a property with a value. "Bakery" is a more specific type of LocalBusiness, which tells search engines more than the general type would. Everything in it should also appear on the page itself: Google's guidelines say markup must describe what visitors can see.

There are two older formats, Microdata and RDFa, which add attributes to the visible HTML instead. They still work, but JSON-LD is easier to write and maintain, and it's what most platforms and plugins now produce.

The types worth adding

Most business sites need only a handful. These are the ones we add most often.

TypeWhere it goesWhat it does
Organization or LocalBusinessHome page or contact pageConfirms your name, logo, address, phone number, hours and social profiles. Use the most specific type that fits, such as Dentist, Plumber or Restaurant.
BreadcrumbListEvery page below the home pageShows where a page sits in the site, and can replace the web address with a readable path in results.
Product and OfferProduct pagesPrice, availability, brand and reviews. Can show price and stock in results and feeds Google's shopping features.
ArticleBlog posts and guidesThe headline, author, publication date and the date it was last updated.
EventEvent pagesDate, time, place and ticket details. Can earn an event listing in results.
JobPostingJob pagesTitle, pay, location and closing date. This is how jobs get into Google's job results.
MenuRestaurant menu pagesDishes, descriptions and prices, so they can be read without opening a PDF.
FAQPagePages with a list of questions and answersMarks up the questions and answers. Google now shows FAQ results only for well-known government and health sites, but the markup still describes the page clearly.

Our restaurants and recruitment agencies pages show what the Menu and JobPosting types look like in practice.

What it does, and what it doesn't

Rich results

Some types can change how your page looks in Google: review stars on a product, a recipe's cooking time, a job's salary, an event's date. Google decides whether to show them, and markup only makes a page eligible. Google also changes which rich results it supports. It limited FAQ results to government and health sites and dropped HowTo results in 2023, and it retired several less used types in 2025, so check its search gallery before building anything around one.

Rankings

Google has said for years that structured data isn't a ranking factor in itself. It helps Google understand a page, and a rich result can earn more clicks than a plain one, but markup on a weak page won't make it rank.

AI search

AI tools need to get your facts right: your hours, your prices, what you offer and where. Microsoft has said that structured data helps Bing's AI features understand web pages, and Bing's index feeds several AI tools. Clear markup that matches the page and your listings gives every machine reading your site the same facts. Our guide to AI SEO covers what else those tools look for.

Review stars for your own business

A common hope is that marking up your reviews will put stars next to your home page in Google. Since 2019, Google hasn't shown review stars for a business's reviews of itself on its own site. Stars still work for products and some other types, and your Google Business Profile shows your Google reviews whatever your site does.

How to add schema markup

  • Use what your platform gives you. Most e-commerce platforms add Product markup, and SEO plugins for WordPress add Organization, Article and breadcrumb markup. Check what's already there before adding more, because two conflicting blocks for the same thing cause confusion.
  • Fill in the gaps by hand. A JSON-LD block like the bakery example can go in the page's head or body. On most sites a developer adds it to the page template, so it fills in automatically for every page of that type.
  • Keep it in step with the page. Markup that says you open at 8 when the page says 9 does more harm than no markup. When prices, hours or staff change, the markup has to change too.

Our guide to technical SEO explains where structured data fits with the rest of a site's foundations.

How to check it's working

  • Rich Results Test from Google shows which rich results a page is eligible for and flags errors.
  • Schema Markup Validator at validator.schema.org checks any Schema.org markup, including types Google doesn't use for rich results.
  • Google Search Console lists the structured data it has found across your site, with errors and warnings, under its enhancement reports.

Errors stop markup from being used. Warnings usually mean a recommended property is missing, which is worth fixing when the information exists.

Mistakes we see most often

  • Markup describing things that aren't on the page, such as reviews or prices visitors can't see. Google can ignore it or take manual action against the site.
  • Old markup left behind after a redesign, with a previous address or phone number.
  • The general LocalBusiness type where a specific one, such as Accountant or Electrician, exists.
  • Product markup with no price or availability, which leaves the product out of most shopping features.
  • Several plugins each adding their own Organization block with slightly different details.

When to get help

A small site on a modern platform can usually get the basics right with a good plugin and an hour's checking. It's worth getting help when you have many page types, products or locations, when your platform's markup is wrong and hard to change, or when you're building a new site. Our structured data and schema markup services cover the audit, the templates and keeping it current, and our technical SEO work fixes the rest of the foundations alongside it.

Want us to do it for you?

Our plans cover everything in this guide, at a fixed monthly price.