Global Attributes

HTML itemref attribute

Includes additional elements when collecting microdata properties, even if they are outside the item's subtree. Use on an itemscope element. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.

Formal Syntax & Structure

html syntaxhtml
itemref="book-name"

Parameters & Attributes

NameTypeDescription
itemrefspace-separated element IDsIncludes additional elements when collecting microdata properties, even if they are outside the item's subtree. Use on an itemscope element.

Working Example

Example Snippethtml
<div itemscope itemref="book-name"></div><span id="book-name" itemprop="name">Web notes</span>
HTML Reference