Microdata is a WHATWG HTML specification used to nest metadata within existing content on web pages. Search engines extract microdata to provide rich search results (rich snippets).
Attributes used: itemscope, itemtype, and itemprop.
Add structured data directly to HTML markup using Schema.org vocabulary.
Microdata is a WHATWG HTML specification used to nest metadata within existing content on web pages. Search engines extract microdata to provide rich search results (rich snippets).
Attributes used: itemscope, itemtype, and itemprop.
Mastering HTML Microdata and SEO helps you write clean and reliable HTML code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.
<div itemscope itemtype="https://schema.org/Product">
<h2 itemprop="name">Wireless Headphones</h2>
<span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
$<span itemprop="price">99.00</span>
</span>
</div>
Structured product metadata parsed by search engines
Stuck on something?
Ask the community in the CodesInTech forum.
Need a developer?
Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.
Explore Our Services