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
| Name | Type | Description |
|---|---|---|
| itemref | space-separated element IDs | Includes 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>