schemaorg-coda :: Example

eg-0317

From v29.4

JSON-LD

{
 "@context": "https://schema.org/",
 "@type": "CategoryCodeSet",
 "@id": "_C1",
 "name": "The Mammal Classification List",
 "hasCategoryCode": {
	"@type": "CategoryCode",
	"name": "Carnivore",
	"description": "A mammal that feeds on other animals",
	"inCodeSet": "_C1"
	}
}

RDFa

<div vocab="https://schema.org/" typeof="CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span property="name">The Mammal Classification List</span></h1>
	 <ul>
		<li property="hasCategoryCode" typeof="CategoryCode">
			<span property="name">Carnivore</span> - <span property="description">A mammal that feeds on other animals</span>
			<link property="inCodeSet" href="#C1"/>
		</li>
	 </ul>
</div>

Microdata

<div itemscope itemtype="https://schema.org/CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span itemprop="name">The Mammal Classification List</span></h1>
	 <ul>
		<li itemprop="hasCategoryCode" itemscope itemtype="https://schema.org/CategoryCode">
			<span itemprop="name">Carnivore</span> - <span itemprop="description">A mammal that feeds on other animals</span>
			<link itemprop="inCodeSet" href="#C1"/>
		</li>
	 </ul>
</div>

Pre-Markup

<div>
	 <h1 >Defined Values in The Mammal Classification List</h1>
	 <ul>
		<li>Carnivore - A mammal that feeds on other animals</li>
	 </ul>
</div>