Microdata is a way of adding machine-readable labels to the visible HTML of a page, using attributes such as itemscope, itemtype and itemprop, so search engines can tell exactly what each piece of text means. It is part of the HTML standard. With the schema.org vocabulary it is one of 3 formats Google reads for structured data, next to JSON-LD and RDFa.
What is microdata? #
The WHATWG HTML Standard says microdata lets you add nested groups of name-value pairs to a document, in parallel with the existing content. In plain words: you keep your normal HTML, and you tag parts of it. A price stays a price on screen, but the code now also says “this is the price”.
Each group is called an item. Each name-value pair is a property. MDN’s microdata guide notes that items and properties are written as ordinary elements, so nothing new appears for the reader.
Which attributes does it use? #
| Attribute | What it does |
|---|---|
| itemscope | Starts a new item: “everything inside here is about one thing” |
| itemtype | Names the type with a vocabulary address, such as https://schema.org/Product |
| itemprop | Labels one property of the item, such as name or price |
| itemid | Gives the item a global identifier as an address, where the vocabulary allows it |
| itemref | Pulls in properties from elements elsewhere on the page, listed by their id |
The first 3 do almost all the work. itemref helps when your page layout splits one item across 2 parts of the page.
What does it look like? #
Here is a product block marked up with schema.org terms:
<div itemscope itemtype="https://schema.org/Product">
<h2 itemprop="name">Oak side table</h2>
<p itemprop="description">Solid oak, 45 cm high.</p>
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<span itemprop="price" content="129.00">£129</span>
<meta itemprop="priceCurrency" content="GBP">
<link itemprop="availability" href="https://schema.org/InStock">In stock
</div>
</div>
Note the nesting. The offer is its own item, started straight after the itemprop that holds it. The schema.org getting started guide teaches the same pattern with a film page: a director property that opens a new Person item with its own name and birth date.
Why does it matter for search? #
Structured data helps search engines understand a page and can make it eligible for a rich snippet, such as price and stock under a product result. Google’s introduction to structured data lists 3 formats: JSON-LD, Microdata and RDFa. It recommends JSON-LD where your setup allows, because it is the easiest for site owners to set up and maintain at scale, with fewer user errors. It also says all 3 formats are equally fine for Google if the markup is valid.
So microdata is not worse for ranking. It is just harder to keep right, because the labels live inside your templates. A designer who moves a price into a new box can break the markup without noticing.
Why does it matter for AI answers? #
AI systems that read web pages, from AI crawlers to the live fetchers behind ChatGPT search, get the same HTML as everyone else. Labelled facts are easier to pull out cleanly than loose text. A large language model can still misread a page, but a clear “price: 129.00, currency: GBP” leaves less room for error.
Google’s AI features page for site owners states there is no special markup needed for AI Overviews, and lists matching structured data to visible text as good practice. Microdata does this by design: the label sits on the very text people read. That is a real strength for answer engine optimisation.
Microdata or JSON-LD? #
| Question | Microdata | JSON-LD |
|---|---|---|
| Where does it live? | On the visible HTML elements | In one separate script block |
| Can it drift from the page? | Less often, it is the page | Yes, if the block is not updated |
| Easy to edit? | Harder, spread through templates | Easier, all in one place |
| Google’s advice | Supported | Recommended |
Many older themes and shop systems still output microdata. There is no need to rip it out. Do avoid describing the same product twice in 2 formats with different facts.
Common mistakes #
- Marking up hidden text. The schema.org guide says to mark up only content that visitors can see, not text in hidden blocks. Google’s structured data guidelines say the same.
- Overusing meta tags. A meta element with a content value is for facts not shown in a usable form, such as a currency code. The schema.org guide says to use it only when the fact cannot be marked up any other way.
- Dates in the wrong form. Use a time element with a datetime value in ISO 8601 form, such as 2026-11-24, not 24/11/26.
- Broken nesting. An itemprop outside its itemscope belongs to the wrong item, or to none.
- Spelling the type wrong. itemtype must be the exact schema.org address. “schema.org/product” in lower case is a different, unknown type.
- Clashing formats. Theme microdata says one price, a plugin’s JSON-LD says another.
A worked example #
A small online furniture shop sees prices in its product results go missing. Its theme outputs microdata. A recent redesign moved the price into a new element, and the itemprop=”price” was left on an empty span. Our schema checker shows the Product item, but the price is missing.
The developer moves the attribute back onto the element that shows the price and adds content=”129.00″ for a clean number. They also find a plugin adding a second Product in JSON-LD with last year’s price, and switch that output off. One product, one set of facts, in one format.
How to check it #
- Paste the page address into our schema checker. It reads JSON-LD and microdata and lists each item and property.
- Extract the facts as plain text with the structured data facts extractor and compare them with what the page shows.
- Use Google’s Rich Results Test for features Google supports, then watch the enhancement reports in Google Search Console.
- Tidy messy template output with our HTML formatter so you can see where each itemscope starts and ends.
- Check the wider page with our meta tag checker and AI readiness checker.
Our guide on how to use the schema checker shows a full run. The Pro structured data monitor (coming soon) will warn you when a template change breaks markup.
Questions #
Is microdata the same as microformats? #
No. Microformats use class names, such as h-card, and are a separate, older approach. Microdata uses its own item attributes.
Do browsers show microdata? #
No. It changes nothing on screen. It is for machines that read the code.
Does Bing read it? #
MDN says Google and the other major search engines support the schema.org vocabulary, and names Google, Microsoft and Yahoo as relying on it.
See more words in technical SEO, including product structured data and technical SEO itself.
Related words #
Sources #
- WHATWG HTML Living Standard: Microdata, checked 24 November 2026
- MDN Web Docs: Microdata, checked 24 November 2026
- schema.org: Getting started with schema.org using Microdata, checked 24 November 2026
- Google Search Central: Introduction to structured data markup, checked 24 November 2026
- Google Search Central: General structured data guidelines, checked 24 November 2026
- Google Search Central: AI features and your website, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Microdata. URSY. Updated 26 November 2026. https://ursy.com/wiki/microdata/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →