Microdata (HTML): Difference between revisions

Content deleted Content added
Line 16:
== Global attributes ==
* <code>itemscope</code> – Creates the Item and indicates that descendants of this [[HTML element|element]] contain information about it.<ref name="WHATWG"/>
* <code>itemtype</code> – A valid URL of a vocabulary that describes the item and its properties' context.
* <code>itemid</code> – Indicates a unique identifier of the item.
* <code>itemprop</code> – Indicates that its containing tag holds the value of the specified item property. The property's name and value context are described by the item's vocabulary. Properties values usually consist of string values, but can also use URLs using the <code>a</code> element and its <code>href</code> attribute, the <code>img</code> element and its <code>src</code> attribute, or other elements that link to or embed external resources.<ref name=WHATWG/>
* <code>itemref</code> – Properties that are not descendants of the element with the <code>itemscope</code> attribute can be associated with the item using this attribute. Provides a list of element idsIDs (not <code>itemid</code>s) with additional properties elsewhere in the document.<ref name="WHATWG"/>
* <code>datetime</code> - Indicates date or duration as specified by [[ISO 8601]] standard.
 
== Example ==