`itemref` HTML global attribute
Properties that are not descendants of an element with the itemscope attribute can be associated with an item using the global attribute itemref.
Properties that are not descendants of an element with the [`itemscope`](/docs/Web/HTML/Reference/Global_attributes/itemscope) attribute can be associated with an item using the [global attribute](/docs/Web/HTML/Reference/Global_attributes) **`itemref`**.
`itemref` provides a list of element IDs (not `itemid`s) elsewhere in the document, with additional properties
The `itemref` attribute can only be specified on elements that have an `itemscope` attribute specified.
> [!NOTE]
> The `itemref` attribute is not part of the microdata data model. It is merely a syntactic construct to aid authors in adding annotations to pages where the data to be annotated does not follow a convenient tree structure. For example, it allows authors to mark up data in a table so that each column defines a separate item while keeping the properties in the cells.
## Examples
### Representing structured data for a band
This example uses microdata attributes to represent the following structured data (in [JSON-LD](https://json-ld.org/) format):
```json
{
"@id": "amanda",
"name": "Amanda",
"band": {
"@id": "b",
"name": "Jazz Band",
"size": 12
}
}
```
#### HTML
```html
<div itemscope id="amanda" itemref="a b"></div>
<p id="a">Name: <span itemprop="name">Amanda</span></p>
<div id="b" itemprop="band" itemscope itemref="c"></div>
<div id="c">
<p>Band: <span itemprop="name">Jazz Band</span></p>
<p>Size: <span itemprop="size">12</span> players</p>
</div>
```
#### Result
Representing structured data for a band
## Specifications
## See also
- [Other different global attributes](/docs/Web/HTML/Reference/Global_attributes)
- Other microdata related global attributes:
- [`itemid`](/docs/Web/HTML/Reference/Global_attributes/itemid)
- [`itemprop`](/docs/Web/HTML/Reference/Global_attributes/itemprop)
- [`itemscope`](/docs/Web/HTML/Reference/Global_attributes/itemscope)
- [`itemtype`](/docs/Web/HTML/Reference/Global_attributes/itemtype)
Cite this
"`itemref` HTML global attribute". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/itemref JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy