In HTML microdata, itemscope is a boolean attribute you can put on any element. It creates a new item: a group of name-value pairs that belong together. Without it, the properties on a page are loose labels. With it, a search engine or other program knows that this name, this director and this genre all describe the same movie.
<div itemscope itemtype="https://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<p>Director: <span itemprop="director">James Cameron</span></p>
<p itemprop="genre">Science fiction</p>
</div>
Here the <div> is the item, itemtype says what kind of thing it is, and each itemprop adds one property. Because itemscope is boolean, it needs no value: its presence is enough.
How itemscope works with the other microdata attributes
itemscope opens the item; the other attributes fill it in. Most real markup uses the first three.
| Attribute | What it does |
|---|---|
itemscope |
Starts a new item on this element |
itemtype |
Names the type with a full URL from a vocabulary, usually Schema.org |
itemprop |
Adds a property to the nearest item around it |
itemid |
Gives the item a global identifier (a URL) so it can be linked to other data |
itemref |
Pulls in properties from elements elsewhere on the page, by their id |
The HTML standard only allows itemtype, itemid and itemref on an element that also has itemscope. An itemtype on its own is invalid and gets ignored.
Nesting one item inside another
When a property is itself a thing with its own details, start a new item on that property's element. A recipe's author is a person, so the author gets its own itemscope:
<article itemscope itemtype="https://schema.org/Recipe">
<h2 itemprop="name">Grandma's apple pie</h2>
<p>By
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">Carol Smith</span>
</span>
</p>
<p>Prep time: <time itemprop="prepTime" datetime="PT30M">30 minutes</time></p>
</article>
The name inside the <span> belongs to the person, not the recipe, because the nearest itemscope above it is the person's.
Values that aren't plain text
For most elements, a property's value is the element's text. Some elements supply a machine-readable value instead:
<time>: thedatetimeattribute, so "30 minutes" can be read asPT30M.<a>and<link>: thehrefURL.<img>: thesrcURL.<meta>: thecontentattribute, for a value readers don't see as text, such as a currency code next to a price.
Use <meta> sparingly. Search engines want your markup to describe what's on the page, not to add facts readers can't see.
Does itemscope help SEO?
It can, through structured data. Google reads three formats: JSON-LD, microdata and RDFa. All three are equally fine when they're valid, but Google recommends JSON-LD for most sites because it's easier to add and maintain. Google Search Central
Microdata still makes sense when your templates already print the visible content and you'd rather label it in place than repeat it in a separate script. Either way, the markup only matters if it's eligible for a rich result, and even then Google doesn't promise to show one.
Google also retires rich result types now and then. FAQ rich results stopped appearing on May 7, 2026, for example. Check Google's structured data gallery before you mark up a type for search reasons.
Misleading markup can earn a manual action. That costs the page its rich result eligibility; Google says it doesn't affect how the page ranks. Google Search Central
Common mistakes with itemscope
- A property outside its item. An
itempropbelongs to the nearestitemscopeabove it. Move it inside, or connect it withitemref. - An item with no type.
itemscopewithoutitemtypeis valid HTML, but search engines can't tell what the item is. - Marking up hidden content. Google's guidelines say not to mark up content readers can't see on the page.
- Mixing up nested items. If the author's name shows up as the recipe's name, a nested
itemscopeis missing.
Test your markup with the Rich Results Test to see which items Google finds and whether any required property is missing. For the wider format, see microdata.