STRUCTURED DATA · SEO GLOSSARY

Microdata

Microdata is one of three syntaxes for adding structured data to HTML (alongside JSON-LD and RDFa). It embeds structured data inline in HTML using itemscope, itemtype, and itemprop attributes on existing HTML elements. JSON-LD is now Google\'s recommended format, but Microdata is still valid and indexed.

Definition

Microdata adds structured data annotations directly to HTML elements: **itemscope** — marks an HTML element as the container for a structured data item (e.g., <div itemscope>); **itemtype** — specifies the schema type using a Schema.org URL (e.g., itemtype="https://schema.org/Product"); **itemprop** — marks an element as a property of the enclosing item (e.g., <span itemprop="name">Product Name</span>). Example Microdata Product markup: <div itemscope itemtype="https://schema.org/Product"><span itemprop="name">Blue Wireless Headphones</span><span itemprop="description">Over-ear noise cancelling headphones.</span></div>. **Comparison with JSON-LD**: Microdata is embedded in the visible HTML — every property must correspond to a visible HTML element. This makes it more constrained than JSON-LD, which is a separate <script> block that can include properties not shown to users (like price currency, availability codes, or identifier values that don\'t appear in visible text). JSON-LD also doesn\'t break if the visible HTML is redesigned — Microdata breaks when the HTML structure changes. **Google\'s position**: Google has supported Microdata since it was developed (originally by the WHATWG specification group). Google still indexes and validates Microdata. However, Google\'s documentation and tooling (Rich Results Test, Structured Data Guidelines) now recommend JSON-LD as the preferred syntax. **Migration from Microdata to JSON-LD**: for sites with existing Microdata markup, migration to JSON-LD is not urgently required — Microdata continues to work. However, JSON-LD is easier to maintain and validate, and new structured data should use JSON-LD.

Why it matters for SEO

Microdata is most commonly encountered when auditing older WordPress themes, legacy e-commerce templates, and sites built before JSON-LD became dominant (pre-2016). Sites with Microdata markup may not be using it correctly — either missing required properties, using incorrect itemprop values, or mixing Microdata and JSON-LD in ways that cause duplicate schema errors. Understanding Microdata syntax is necessary to audit and validate these sites correctly.

How DeepSEOAnalysis checks this

The audit detects and validates both JSON-LD and Microdata structured data on crawled pages. For Microdata: the itemscope/itemtype/itemprop attributes are parsed, the inferred schema type and properties are validated against Google\'s Rich Results specifications, and missing required properties are flagged. If both Microdata and JSON-LD are present for the same entity type, a duplicate schema warning is issued.

Useful tools and resources

See how your site scores on Microdata.

The free DeepSEOAnalysis audit checks microdata and 100+ other signals. Full report, no signup.

Run a free audit →