Mobile app version of vmapp.org
Login or Join
Martha676

: 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

@Martha676

Posted in: #Html5 #Microdata #Url

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

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>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme