Global Attributes

HTML itemprop attribute

Adds properties to a microdata item. The value comes from element-specific rules, such as text content, href or content. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.

Formal Syntax & Structure

html syntaxhtml
itemprop="name"

Parameters & Attributes

NameTypeDescription
itempropspace-separated property namesAdds properties to a microdata item. The value comes from element-specific rules, such as text content, href or content.

Working Example

Example Snippethtml
<div itemscope itemtype="https://schema.org/Book">  <span itemprop="name">Web notes</span></div>
HTML Reference