?
This document uses PHP Chinese website manual Release
itemid
全局屬性是某個項目的唯一全局標識符。itemid
屬性只能為既具有元素指定itemscope
和itemtype
屬性。此外,itemid
只能在具有itemscope
相應屬性的元素上指定itemtype
或引用支持全局標識符的詞匯表。
itemtype
全局標識符的確切含義由指定詞匯表中該標識符的定義提供。詞匯表定義是否有多個具有相同全局標識符的項目可以共存,如果是,則處理具有相同標識符的項目。
注意: Whatwg.org 定義指定itemid
必須是 URL 。但是,以下示例正確說明也可以使用 URN 。這種不一致可能反映了 Microdata 規(guī)范的不完整性。
<dl itemscope itemtype="http://vocab.example.net/book" itemid="urn:isbn:0-330-34032-8"><dt>Title <dd itemprop="title">The Reality Dysfunction<dt>Author <dd itemprop="author">Peter F. Hamilton<dt>Publication date<dd><time itemprop="pubdate" datetime="1996-01-26">26 January 1996</time> </dl>
itemscope | itemtype: itemid | http://vocab.example.net/book: urn:isbn:0-330-34032-8 |
---|---|---|
itemprop | title | The Reality Dysfunction |
itemprop | author | Peter F. Hamilton |
itemprop | pubdate | 1996-01-26 |
Specification | Status | Comment |
---|---|---|
itemid | WG Note - No longer being actively developed |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |