HTML itemprop Global Attribute
Description
The itemprop attribute is part of the HTML Microdata specification and is used to define properties of structured data items. It helps describe the meaning of content on a webpage in a way that both humans and machines can understand, making it especially useful for search engines, SEO, and rich results.
The itemprop attribute is used together with other microdata attributes such as itemscope, itemtype, and itemid to create structured data that represents real-world entities like people, products, articles, events, and more.
What itemprop Does
The itemprop attribute assigns a name to a property of an item. That property can hold a value such as:
- Text content
- A URL
- A number
- A date or time
- A nested item
Each itemprop belongs to the nearest parent element that has the itemscope attribute.
Using itemprop with itemscope and itemtype
To define a complete structured data item, itemprop is usually used inside an element with itemscope and itemtype.
<div itemscope itemtype="https://schema.org/Person">
<span itemprop="name">Jane Smith</span>
<span itemprop="jobTitle">Web Developer</span>
</div>
Here:
itemscopedefines a new structured data itemitemtypespecifies the schema typeitempropdefines properties belonging to that item
Common Use Cases
1. SEO and Search Engines
Search engines use itemprop data to better understand page content and may display enhanced search results such as:
- Rich snippets
- Knowledge panels
- Product ratings
- Event dates
2. Describing Structured Content
You can describe structured information such as:
- Articles
- Products
- Reviews
- Recipes
- Organizations
- People
3. Nesting Properties
itemprop can also define nested objects:
<div itemscope itemtype="https://schema.org/Person">
<span itemprop="name">Alex Johnson</span>
<div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
<span itemprop="addressLocality">Sydney</span>
<span itemprop="addressCountry">Australia</span>
</div>
</div>
Using itemprop with Meta Tags
You can also define values using <meta> elements when the data doesn’t need to be visible:
<meta itemprop="price" content="29.99">
<meta itemprop="priceCurrency" content="USD">
This is useful for machine-readable data that shouldn’t appear visually on the page.
Valid Values
The value of itemprop:
- Must be a string
- Should match a property defined by the vocabulary being used (commonly Schema.org)
- Can contain multiple space-separated property names (less common but allowed)
Example:
<span itemprop="name alternateName">CSS Portal</span>
Relationship to Other Microdata Attributes
| Attribute | Purpose |
|---|---|
itemscope |
Defines a new item |
itemtype |
Specifies the type of item |
itemprop |
Defines a property of an item |
itemid |
Gives the item a unique identifier |
itemref |
References properties located elsewhere in the document |
Best Practices
- Always use
itempropwithin anitemscopecontext - Use official schemas from schema.org when possible
- Avoid inventing property names unless absolutely necessary
- Keep structured data consistent with visible content
- Use semantic HTML elements where possible for better clarity
Syntax
<span itemprop="name">John Doe</span>
Values
- name
Unlike standard HTML attributes (like
type="checkbox"),itempropdoes not have a fixed list of keywords. Instead, its values depend entirely on theitemtypeyou are using.The most common source for these values is Schema.org. Here are a few examples of properties based on specific types:
Item Type (itemtype) Common Property Values (itemprop) Person name,jobTitle,address,birthDate,emailProduct name,brand,offers,aggregateRating,skuEvent startDate,location,description,performerRecipe cookTime,recipeIngredient,recipeInstructions,calories
Example
Browser Support
The following information will show you the current browser support for the HTML itemprop global attribute. Hover over a browser icon to see the version that first introduced support for this HTML global attribute.
This global attribute is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 27th December 2025
