schemaorg-coda :: Example

eg-0433

From v29.4

JSON-LD

{
	"@context": "https://schema.org",
	"@type": "TouristAttraction",
	"name": "Neuschwanstein Castle",
	"address": {
		"@type": "PostalAddress",
		"addressLocality": "Schwangau",
		"addressCountry": "Germany"
	},
	"availableLanguage": [
		{
			"@type": "Language",
			"name": "German"
		},
		{
			"@type": "Language",
			"name": "English"
		}
	]
}

RDFa

<div vocab="https://schema.org" typeof="TouristAttraction">
	<h1><span property="name">Neuschwanstein Castle</span></h1>
	<div>It is a nineteenth-century Romanesque Revival palace in
		<div property="address" typeof="PostalAddress">
			<span property="addressLocality">Schwangau</span>, in
			<span property="addressCountry">Germany</span>.
		</div>
	</div>
	<div>Guided tours in
		<div property="availableLanguage" typeof="Language">
			<span property="name">German</span>
		</div> and
		<div property="availableLanguage" typeof="Language">
			<span property="name">English</span>.
		</div>
	</div>
</div>

Microdata

<div itemscope itemtype="https://schema.org/TouristAttraction">
	<h1><span itemprop="name">Neuschwanstein Castle</span></h1>
	<div>It is a nineteenth-century Romanesque Revival palace in
		<div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
			<span itemprop="addressLocality">Schwangau</span>, in
			<span itemprop="addressCountry">Germany</span>.
		</div>
	</div>
	<div>Guided tours in
		<div itemprop="availableLanguage" itemscope itemtype="https://schema.org/Language">
			<span itemprop="name">German</span>
		</div> and
		<div itemprop="availableLanguage" itemscope itemtype="https://schema.org/Language">
			<span itemprop="name">English</span>.
		</div>
	</div>
</div>

Pre-Markup

<h1>Neuschwanstein Castle</h1>
<div>Neuschwanstein Castle is a nineteenth-century Romanesque Revival palace in Schwangau, in southwest Bavaria, Germany.</div>
<div>Guided tours in German and English.</div>