Skip to content

Instantly share code, notes, and snippets.

@JoostKiens
Last active February 6, 2017 17:50
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoostKiens/4753106 to your computer and use it in GitHub Desktop.
Save JoostKiens/4753106 to your computer and use it in GitHub Desktop.
HTML5 blockquote & citation in figure & figcaption with microdata
<!--
/**
* Author: @joostkiens
* Licensed under the MIT license
*/
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML5 Blockquotes &amp; microdata, like two peas in a pod</title>
</head>
<body>
<article itemscope itemtype="http://schema.org/Blogposting">
<header>
<h1 itemprop="name">
<a itemprop="url" href="http://example.com/why-incite-a-riot/">
HTML5 Blockquotes &amp; microdata, like two peas in a pod
</a>
</h1>
<p>
By <span itemprop="creator">Joost Kiens</span>,
on <time itemprop="datePublished" datetime="2013-02-10">January 10, 2013</time>
</p>
</header>
<div itemprop="articleBody">
<p>
With HTML’s academic roots, it’s no surprise that there are multiple elements to reference another work: q, cite and blockquote have been around for ages. What is surprising is how weak they are semantically.
</p>
<figure itemprop="mentions" itemscope itemtype="http://schema.org/Article">
<blockquote>
This usage of a definition list is proof that writing W3C specifications and smoking crack are not mutually exclusive activities.
</blockquote>
<figcaption>
<span itemprop="author">Jeremy Keith</span>,
<cite itemprop="name">
<a itemprop="url" href="http://24ways.org/2009/incite-a-riot/">Incite a riot</a>
</cite>,
<span itemprop="publisher">24 Ways</span>
</figcaption>
</figure>
</div>
</article>
</body>
</html>
@aficiomaquinas
Copy link

I had searched for this for ages. Thanks! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment