---
title: "Microdata"
description: "Microdata adds itemscope, itemtype and itemprop labels to visible HTML so search engines and AI tools can read facts such as names, prices and dates."
url: https://ursy.com/wiki/microdata/
updated: 2026-11-26T15:46:03+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/microdata/
---

# Microdata

> Microdata adds itemscope, itemtype and itemprop labels to visible HTML so search engines and AI tools can read facts such as names, prices and dates.

**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](https://ursy.com/wiki/search-engine/) 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](https://ursy.com/wiki/google/) reads for structured data, next to JSON-LD and RDFa.

## What is microdata? {#what-is-microdata}

The [WHATWG HTML Standard](https://html.spec.whatwg.org/multipage/microdata.html) 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](https://ursy.com/wiki/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](https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Microdata) notes that items and properties are written as ordinary elements, so nothing new appears for the reader.

## Which attributes does it use? {#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? {#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">&pound;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](https://schema.org/docs/gs.html) 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? {#why-does-it-matter-for-search}

Structured data helps search engines understand a page and can make it eligible for a [rich snippet](https://ursy.com/wiki/rich-snippet/), such as price and stock under a product result. Google’s [introduction to structured data](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data) lists 3 formats: JSON-LD, Microdata and RDFa. It recommends [JSON-LD](https://ursy.com/wiki/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? {#why-does-it-matter-for-ai-answers}

AI systems that read web pages, from [AI crawlers](https://ursy.com/wiki/ai-crawler/) to the [live fetchers](https://ursy.com/wiki/live-fetcher/) behind [ChatGPT search](https://ursy.com/wiki/chatgpt-search/), get the same HTML as everyone else. Labelled facts are easier to pull out cleanly than loose text. A [large language model](https://ursy.com/wiki/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](https://developers.google.com/search/docs/appearance/ai-features) states there is no special markup needed for [AI Overviews](https://ursy.com/wiki/ai-overview/), 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](https://ursy.com/wiki/answer-engine-optimisation/).

## Microdata or JSON-LD? {#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 {#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](https://developers.google.com/search/docs/appearance/structured-data/sd-policies) say the same.
- **Overusing [meta tags](https://ursy.com/wiki/meta-tag/).**  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-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](https://ursy.com/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 {#how-to-check-it}

1. Paste the page address into our [schema checker](https://ursy.com/schema-checker/). It reads JSON-LD and microdata and lists each item and property.
2. Extract the facts as plain text with the [structured data facts extractor](https://ursy.com/webmaster-tools/structured-data-facts-extractor/) and compare them with what the page shows.
3. Use Google’s Rich Results Test for features Google supports, then watch the enhancement reports in [Google Search Console](https://ursy.com/wiki/google-search-console/).
4. Tidy messy template output with our [HTML formatter](https://ursy.com/webmaster-tools/html-formatter/) so you can see where each itemscope starts and ends.
5. Check the wider page with our [meta tag checker](https://ursy.com/meta-tag-checker/) and [AI readiness checker](https://ursy.com/ai-readiness-checker/).

Our guide on [how to use the schema checker](https://ursy.com/guides/how-to-use-schema-checker/) shows a full run. The Pro [structured data monitor](https://ursy.com/pro/structured-data-monitor/) (coming soon) will warn you when a template change breaks markup.

## Questions {#questions}

### Is microdata the same as microformats? {#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? {#do-browsers-show-microdata}

No. It changes nothing on screen. It is for machines that read the code.

### Does Bing read it? {#does-bing-read-it}

MDN says Google and the other major search engines support the schema.org vocabulary, and names Google, Microsoft and [Yahoo](https://ursy.com/wiki/yahoo/) as relying on it.

See more words in [technical SEO](https://ursy.com/wiki/topics/technical-seo/), including [product structured data](https://ursy.com/wiki/product-structured-data/) and [technical SEO](https://ursy.com/wiki/technical-seo/) itself.

## Related words {#related-words}

- [Schema markup](https://ursy.com/wiki/schema-markup/)
- [JSON-LD](https://ursy.com/wiki/json-ld/)
- [Rich snippet](https://ursy.com/wiki/rich-snippet/)
- [Review snippets](https://ursy.com/wiki/review-snippets/)
- [Entity](https://ursy.com/wiki/entity/)

## Sources {#sources}

- [WHATWG HTML Living Standard: Microdata](https://html.spec.whatwg.org/multipage/microdata.html), checked 24 November 2026
- [MDN Web Docs: Microdata](https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Microdata), checked 24 November 2026
- [schema.org: Getting started with schema.org using Microdata](https://schema.org/docs/gs.html), checked 24 November 2026
- [Google Search Central: Introduction to structured data markup](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data), checked 24 November 2026
- [Google Search Central: General structured data guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies), checked 24 November 2026
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
