The HTML itemprop attribute
The HTML itemprop attribute adds a property — a name-value pair — to a microdata item. The value comes from the element's text content, or from an attribute like href, src or content. Use it inside an element that has itemscope.
Overview
The itemprop attribute names a single property of a microdata item, such as name, price or author. You place it on elements inside an itemscope.
The property's value is taken from the element automatically: usually its text content, but from href for links, src for media, datetime for <time>, or the content attribute for a <meta>. One element can carry several space-separated property names, and a property's value can itself be a nested item with its own itemscope.
Syntax
<div itemscope itemtype="https://schema.org/Product">
<span itemprop="name">CodeShack Mug</span>
<span itemprop="price" content="12.00">£12.00</span>
</div>
Values
| Value |
|---|
| One or more space-separated property names. |
Example
<div itemscope itemtype="https://schema.org/Person">
<span itemprop="name">Ada Lovelace</span>, <span itemprop="jobTitle">Mathematician</span>
</div>