Customer Impact

SEO & GEO

What is microdata? Structured data inside your HTML explained

Copy for AI

Microdata is structured data written straight into your existing HTML.

It’s 1 of the 3 formats for structured data.

It labels your visible text with HTML attributes: itemscope, itemtype and itemprop.

The verdict: microdata still works, but it’s the older option. For a new B2B site, choose JSON-LD, the format Google recommends.

Microdata belongs to the wider story of structured data and schema markup.

That’s how you tell SEO crawlers and AI models what’s on your page.

What exactly is microdata?

It’s a specification that’s part of the HTML standard. It adds meaning to text that’s already on your page.

Labels inside your HTML

Microdata “labels” your text with attributes.

There’s no separate block of code, as with JSON-LD.

You stick the labels right in the middle of your visible HTML.

Schema.org supplies the words

Like the other formats, microdata leans on the vocabulary of Schema.org, the shared list the major search engines maintain together.

So microdata is the syntax, the way of writing.

Schema.org supplies the words, such as Organization, Product or Article.

You pick a type from that list and attach properties to it.

What a machine reads

Microdata tells a machine: “this isn’t just text, this is a company name”, or “this number is a price”.

As a result, Google has to guess a lot less about what your page is about.

What is microdata in SEO?

In SEO, microdata is one way to hand Google structured data about your page.

Google says it uses that data “to understand the content of the page”, in its introduction to structured data.

Valid markup can also make a page eligible for rich snippets, such as review stars or breadcrumbs.

Does Google treat microdata as second best?

No. Google writes that “all 3 formats are equally fine for Google, as long as the markup is valid”.

So the format doesn’t change your rankings or your rich results.

Rule of thumb: valid microdata and valid JSON-LD get the same treatment. Broken markup of either kind gets nothing.

What microdata doesn’t do

It doesn’t guarantee a rich result.

Google only calls a page “eligible” when every required property is present and the guidelines are followed.

And it isn’t a shortcut to page 1. It helps machines read your page; the content still has to earn the click.

How does microdata work?

With 3 HTML attributes that you place on ordinary elements, such as a div or a span:

  • itemscope: starts an item, so everything inside belongs together.
  • itemtype: names the type via a Schema.org URL, e.g. https://schema.org/Organization.
  • itemprop: names one property, such as the name, address or price.

A simple example

Here’s what it looks like for a company:

<div itemscope itemtype="https://schema.org/Organization">
  <span itemprop="name">Customer Impact</span>
  <a itemprop="url" href="https://www.customerimpact.be">customerimpact.be</a>
</div>

A person just sees a name and a link.

Thanks to the attributes, a search engine reads an organisation with a name and a URL.

The same principle works for articles, products, events or reviews.

A nested microdata markup example

Real pages rarely stop at one item. A product has an offer, and that offer has a price.

The WHATWG HTML standard handles this with nesting: “Properties can also themselves be groups of name-value pairs.”

You put itemscope on the same element that carries itemprop:

<div itemscope itemtype="https://schema.org/Product">
  <h1 itemprop="name">Office chair</h1>
  <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    <meta itemprop="priceCurrency" content="EUR">
    <meta itemprop="price" content="249">
    <span>249 euro</span>
  </div>
</div>

The product and price are example values. What matters is the shape: an Offer item living inside a Product item, with the clean price in a meta tag.

Which HTML element gives which value?

The element decides where the value comes from. Here’s how the standard reads it:

ElementWhere the value comes fromTypical use
metaThe content attributeHidden values, such as a currency code
aThe href attributeA URL, such as sameAs or url
imgThe src attributeA logo or product image
timeThe datetime valuePublication or event dates
Most other elementsThe visible textNames, titles, descriptions

Watch out: a span with a date in it passes the visible text, not a clean date. Use time with datetime instead.

Two attributes you’ll see less often

The standard adds 2 more global attributes:

  • itemid: gives the item “a global identifier”, for vocabularies that support it.
  • itemref: points to other elements, by ID, that belong to the same item.

itemref is handy when the data sits in separate parts of your layout. It’s also one more thing that breaks when a template changes.

Is microdata the same as JSON-LD?

No. Both carry the same Schema.org data, but they sit in very different places.

Google supports 3 formats

Google supports JSON-LD, microdata and RDFa.

Still, the choice is made quickly.

In its documentation on structured data, Google explicitly recommends JSON-LD.

Why? It’s the easiest to add and maintain. And you don’t break it by accident when you change your page layout.

Here’s the difference in one picture:

STRUCTURED DATA FORMATS Where does the data sit? Microdata woven into your visible HTML <div itemscope itemtype> <span itemprop=“name”> <a itemprop=“url”> Scattered through your layout Breaks along with a redesign JSON-LD one separate script block <script type=“application/ld+json”> “@type”: “Organization”, “name”: “Customer Impact” </script> All data in one place Stays apart from your layout Google supports both and recommends JSON-LD. The Schema.org vocabulary is the same.

Side by side

The practical differences:

CharacteristicMicrodataJSON-LD
Where it sitsWoven into your visible HTMLIn a separate script block
ManagementHarder: labels are scattered through your layoutEasy: everything in one place
Risk during a redesignBreaks along with it more easilyStays separate from your layout
Google recommendationSupportedRecommended

And RDFa?

RDFa is the third format.

It works much like microdata, but with other attributes, such as vocab and property.

That one, too, is rarely used deliberately anymore.

The big drawback

Microdata sits inside your layout.

If a developer changes your template, the markup easily gets wiped out.

Watch out: nobody notices until rich results disappear.

JSON-LD stands apart, so it stays more stable.

How do you check which format a page uses?

Paste the URL into a validator and look at what it detects.

Here’s the Schema Markup Validator on our own English homepage:

Schema Markup Validator result for the customerimpact.be English homepage listing the detected structured data types The Schema Markup Validator on customerimpact.be/en/, October 2026: WebSite and FAQPage detected, 0 errors, 0 warnings, 2 items.

So 2 types load cleanly, with 0 errors to fix.

Our site uses JSON-LD, with no itemscope in the templates. For the structural side of your HTML, see semantic HTML.

The validator reads both formats the same way.

Tip: search the page source for itemscope to spot microdata.

Our guide to schema markup testing covers the other tools.

Where do you still come across microdata?

Mostly on sites built years ago.

Microdata isn’t dead; it’s mainly outdated in use.

You still run into it on:

  • Older websites: set up when microdata and RDFa were common.
  • Outdated themes: CMS templates, such as old WordPress themes, bake it into the HTML.
  • Never migrated sites: “it works anyway”, so nobody switched.

Don’t replace it in a panic

That last point is true as well.

Existing, correct microdata doesn’t need replacing in a hurry, because Google still reads it.

But if you’re building something new, there’s no reason to pick microdata.

Is microdata relevant for your B2B site?

Rarely.

For most B2B companies, microdata vs JSON-LD isn’t a real discussion: pick JSON-LD and you’re done.

Why knowing it still helps

Knowing microdata helps you recognise what’s on your existing site.

It also explains why a developer or an audit mentions it.

The right types matter more than the format

What counts more is having the right structured data at all. And only for what’s actually on your page.

Watch out: false or exaggerated markup works against you instead of for you.

For a B2B company without a webshop, a handful of types is usually enough:

  • Organization: who you are and how to reach you.
  • Article: for your blog and knowledge pages.
  • FAQPage: for real question-and-answer blocks, see FAQPage schema.
  • BreadcrumbList: for your page path, see breadcrumb schema.

Not every conceivable schema. Our guide on implementing schema markup for B2B shows the pragmatic approach.

Steer on leads, not markup

As with everything in SEO, structured data serves a goal.

It helps Google and AI understand your page.

But a pretty rich result that brings in no enquiries is a vanity metric.

Steer on the leads and revenue that extra visibility delivers.

Frequently asked questions about microdata

What is the difference between microdata and JSON-LD?

Microdata weaves the structured data straight into your visible HTML with attributes such as itemscope and itemprop. JSON-LD puts that same data in a separate script block, separate from your layout. Google supports both, but recommends JSON-LD because it is easier to manage.

Is microdata bad for SEO?

No. Correct microdata is simply read by Google and produces the same rich results as JSON-LD. The drawback is practical: it is harder to maintain and breaks faster during a redesign, not that it harms your rankings.

Should I replace my existing microdata with JSON-LD?

Not urgently, if it works correctly. If you are building something new or you are reworking your structured data anyway, JSON-LD is the logical choice. Do not replace something that works perfectly well just for the sake of the format.

What is microdata markup?

Microdata markup is the set of HTML attributes you add to existing elements: itemscope starts an item, itemtype names its Schema.org type and itemprop names each property. Nested items, such as an Offer inside a Product, get their own itemscope.

Does microdata use Schema.org too?

Yes. Microdata is only the way of writing; the types and properties (such as Organization or Product) come from the Schema.org vocabulary, just as with JSON-LD and RDFa.

Unsure about your structured data?

Send us your URL.

We’ll check what’s on it, microdata or JSON-LD, and what it means for Google and AI answers.

We’re a small team that moves fast and steers on leads, not technical scores. Contact us.

Free website scan

Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.

Where should we send your report?

We only use your details for your scan. No spam, unsubscribe anytime.