: Is there a Microdata version of JSON-LD’s "@id"? 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
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.
More posts by @Martha676
1 Comments
Sorted by latest first Latest Oldest Best
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>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.