Skip to content

Instantly share code, notes, and snippets.

@jrochkind
Created September 22, 2011 17:38
Show Gist options
  • Save jrochkind/1235425 to your computer and use it in GitHub Desktop.
Save jrochkind/1235425 to your computer and use it in GitHub Desktop.
alternate format examples
<!DOCTYPE html>
<html>
<head>
<title>Alternate format link microdata: Example 1</title>
</head>
<body>
<div itemscope>
<p>Alice in Wonderland, by Lewis Caroll</p>
<a itemprop="http://example.org/alternate-format"
type="application/x-Research-Info-Systems"
href="http://example.org/items/12355.ris">
Export to EndNote
</a>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Alternate format link microdata: Example 2</title>
</head>
<body>
<section itemscope>
<p>Alice in Wonderland</p>
<p>by Lewis Caroll</p>
<link itemprop="http://example.org/alternate-format"
type="application/x-Research-Info-Systems"
href="http://example.org/items/12355.ris" />
</section>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Alternate format link microdata: Example 3</title>
</head>
<body>
<div itemscope itemtype="http://schema.org/Book">
<img itemprop="image" src="catcher-in-the-rye-book-cover.jpg" alt="" />
<span itemprop="name">The Catcher in the Rye</span>
<link itemprop="bookFormat" href="http://schema.org/Paperback">Mass Market Paperback
by <a itemprop="author" href="/author/jd_salinger.html">J.D. Salinger</a>
<a itemprop="url http://example.org/alternate-format"
type="application/x-Research-Info-Systems"
href="http://example.org/items/12355.ris">
Export to EndNote
</a>
Product details:
<span itemprop="numPages">224</span> pages
Publisher: <span itemprop="publisher">Little, Brown, and Company</span> -
<meta itemprop="datePublished" content="1991-05-01">May 1, 1991
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment