问题原文
原帖链接 · Yen Deng · CC BY-SA 3.0
I'm trying to generate Microdata markup (making use of Schema.org). I know that JSON-LD has a "@id" which helps reference that whatever data is.
Is there a similar thing for Microdata? As I wouldn't want to copy and paste all the data.
已采纳解答
原帖链接 · unor · CC BY-SA 3.0
Yes, the itemid attribute (W3C, WHATWG).
Example:
<div itemscope itemtype="http://schema.org/Person" itemid="/team/alice#i">
<!-- this person (not the page about this person) has the URI "/team/alice#i" -->
</div>
<div itemscope itemtype="http://schema.org/Book">
<link itemprop="author" href="/team/alice#i" />
</div>
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
