Schema Markup Language: One Vocabulary, Three Ways to Write It

CrawlTide Team
8 min read
AI-generated illustration: a single eucalyptus sprig running through three wooden frames, one round, one square and one arched, on a pale shelf.
Table of Contents

AI-generated illustration

The schema markup language is not really a language: it is the schema.org vocabulary (types such as Product, properties such as price) written in one of three syntaxes, JSON-LD, Microdata or RDFa, and Google accepts all three while recommending JSON-LD for most sites because it lives in one script block instead of being threaded through your HTML. Below, one product is written all three ways, with a rule for when switching is worth the work.

Schema.org supplies the words, the syntax supplies the grammar

The schema.org vocabulary defines what you can say about a page, and the syntax defines how you write it down. When people search for a "schema markup language" they usually mean one of two things: the list of types and properties, or the code format those types are written in. They are separate choices, and mixing them up is why so many glossary pages call schema markup a language and then never show you any of it.

The vocabulary is large. The schema.org schemas page (version 30.1, dated 2026-09-16) says the core vocabulary "currently consists of 826 Types, 1540 Properties", arranged in a hierarchy where a Product has properties like name, sku and offers, and an Offer in turn has price and priceCurrency. The project was founded by Google, Microsoft, Yahoo and Yandex, and its homepage reports that "as of 2024, over 45 million web domains markup their web pages with over 450 billion Schema.org objects."

The syntax is the part you actually type. Schema.org states that its vocabulary "can be used with many different encodings, including RDFa, Microdata and JSON-LD", and those three are the ones Google Search reads.

JSON-LD, Microdata and RDFa side by side

JSON-LD is a separate block of data, while Microdata and RDFa are attributes added to the HTML elements that already show the content. That one difference drives almost every practical trade-off between them.

SyntaxWhere it livesWhen to use itIts limit
JSON-LDA <script type="application/ld+json"> block in the head or bodyNew builds, CMS plugins, tag managers, any site where templates change oftenRepeats facts already on the page, so the two copies can drift apart
Microdataitemscope, itemtype and itemprop attributes on visible elementsOlder themes that already ship it and workBreaks quietly when a designer moves or renames the elements it sits on
RDFavocab, typeof and property attributes on visible elementsSites that already publish RDFa for other linked-data consumersRare in modern CMS themes, and the same fragility as Microdata

Google's own introduction to structured data is blunt about the choice: "all 3 formats are equally fine for Google, as long as the markup is valid." To see which of the three a live page uses, and which high-value types it is missing, run it through the CrawlTide schema markup checker.

One product written in all three syntaxes

The clearest way to see the difference is to mark up the same item three times. The product below is hypothetical: a running shoe called Trail Runner 2, priced at $89.00 and in stock.

JSON-LD: a self-contained block

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Trail Runner 2",
  "sku": "TR2-BLK-42",
  "offers": {
    "@type": "Offer",
    "price": "89.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}
</script>

Nothing in the visible page changes. The block can sit anywhere in the document, and a developer can edit it without touching the layout.

Microdata: attributes on the visible elements

<div itemscope itemtype="https://schema.org/Product">
  <h1 itemprop="name">Trail Runner 2</h1>
  <span itemprop="sku">TR2-BLK-42</span>
  <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    <span itemprop="priceCurrency" content="USD">$</span>
    <span itemprop="price" content="89.00">89.00</span>
    <link itemprop="availability" href="https://schema.org/InStock">
  </div>
</div>

Here the markup rides on the heading and price the shopper actually sees. Change the price text and the structured data changes with it, which is Microdata's one real advantage.

RDFa: the same idea with different attribute names

<div vocab="https://schema.org/" typeof="Product">
  <h1 property="name">Trail Runner 2</h1>
  <span property="sku">TR2-BLK-42</span>
  <div property="offers" typeof="Offer">
    <span property="priceCurrency" content="USD">$</span>
    <span property="price" content="89.00">89.00</span>
    <link property="availability" href="https://schema.org/InStock">
  </div>
</div>

The vocabulary is identical in all three: Product, name, sku, Offer, price. Only the grammar moved. A real product page needs more than this minimal set, and which properties Google expects depends on whether it is a single product, a variant group or a merchant listing; our guide to required Product schema properties by variant covers that part.

Google recommends JSON-LD because it survives redesigns

Google recommends JSON-LD for maintainability, not because it ranks better: the same documentation says to use "a format that's easiest for you to implement and maintain (in most cases, that's JSON-LD)." A block that is separate from the layout survives a theme change, a new page builder or a component rename, which is exactly when attribute-based markup tends to disappear without anyone noticing.

JSON-LD has two more practical points in its favour. Google says it "can read JSON-LD data when it is dynamically injected into the page's contents", so a tag manager or CMS widget can add it. And JSON-LD 1.1, the current version, has been a W3C Recommendation since 16 July 2020, so it is a settled standard rather than a moving target.

The trade-off nobody in the glossary pages mentions is drift. Because JSON-LD restates facts the page already shows, a sale price updated in the visible template but not in the script block leaves Google reading one price while shoppers see another. If you use JSON-LD, generate it from the same data source that renders the page, never from a hand-edited snippet. Which of the marked-up types Google actually turns into search features is a separate question, covered in how to tell which schema markup Google actually uses.

Finding the syntax a page already uses

Open the page source (not the inspector, which shows the page after scripts run) and search for three markers: application/ld+json means JSON-LD, itemtype means Microdata, and typeof means RDFa. Many sites turn up more than one, often because the theme writes Microdata and an SEO plugin adds JSON-LD on top.

Two syntaxes on one page are not an error in themselves. The problem is when both describe the same product or the same organization: a parser then sees two separate items, and every future edit has to be made twice. If the JSON-LD was injected by a script, the page source will not show it, so check the rendered HTML as well before concluding a block is missing.

Should you migrate Microdata to JSON-LD?

Migrate only when the current markup is causing a maintenance or duplication problem, because Google treats valid Microdata and valid JSON-LD the same. The right call depends on what you find:

  • Microdata that validates on stable templates: leave it. A rewrite costs developer time and gains nothing in search.
  • A theme writing Microdata and a plugin writing JSON-LD for the same entity: keep one. Usually that means switching off the theme's markup and keeping the plugin's JSON-LD, then validating again.
  • A redesign or a move to a new CMS: switch to JSON-LD as part of the build, since the attribute markup has to be rebuilt anyway.
  • Location pages for several branches: JSON-LD makes per-branch hours and addresses far easier to keep consistent; see our notes on local schema markup for branches and opening hours.

What the CrawlTide checker reads, and what it only counts

CrawlTide's schema markup checker parses every JSON-LD block on a page, lists the schema types it finds, reports blocks that fail to parse, and names the high-value types the page is missing entirely. For Microdata and RDFa it is deliberately more modest: it counts elements carrying itemtype or typeof attributes, so you know they are there, but it does not parse or validate them.

When a page has Microdata or RDFa items and no JSON-LD at all, the checker says so and suggests migrating, which in practice flags older themes. In the full product, site crawls record the JSON-LD found on every crawled page, so a block that vanishes after a release shows up across the site rather than one URL at a time. For property-level validation of Microdata or RDFa, use Google's Rich Results Test alongside it.

What choosing a syntax will not fix

No syntax earns a rich result on its own. Google's documentation says structured data "can enable" richer results, not that it guarantees them, and the choice between JSON-LD, Microdata and RDFa has no effect on that eligibility once the markup is valid.

  • Retired features stay retired. Perfect markup for a search feature Google has limited still produces nothing visible; our FAQ schema check walks through that case.
  • Markup must match the page. Marking up a price, rating or address the visitor cannot see is a guidelines problem in any syntax.
  • Schema.org is not Google's rulebook. Google says to rely on Search Central documentation "as definitive for Google Search behavior", so a property being valid on schema.org does not mean Google uses it.

Start with your highest-traffic template

Pick the template that serves the most pages (product, article or location), view its source, and search for the three markers above. If two syntaxes describe the same item, choose one and remove the other before adding anything new. Then run one URL from that template through the schema checker linked earlier to confirm which types are present and which are still missing.

CrawlTide Team

The CrawlTide Team builds and maintains CrawlTide, a platform for technical SEO audits, keyword research, content opportunities, and AI visibility tracking.