First brainstorming, hCard, hCalendar in .
A set of simple, open formats for adding semantic data to HTML (mainly using the class
attribute).
Barnaby Walters
<a href="http://waterpigs.co.uk">Barnaby Walters</a>
<span class="vcard"><a class="fn n url" href="http://waterpigs.co.uk">Barnaby Walters</a></span>
(more than 40 extra characters!)
Barnaby Walters
<a href="http://waterpigs.co.uk">Barnaby Walters</a>
<a class="h-card" href="http://waterpigs.co.uk">Barnaby Walters</a>
Only 15 extra characters.
<a class="h-card" href="http://waterpigs.co.uk">Barnaby Walters</a>
<article class="h-entry">
<h1><a class="p-name u-url" href="http://example.org/post">My Awesome Blog Post</a></h1>
<p>Published <time class="dt-published">2013-01-23 20:54:31</time></p>
<div class="e-content">
<p>You know another great thing about microformats 2?</p>
<p>No more bloody double-encoded HTML in RSS feeds!</p>
</div>
</article>
Classic microformats often used existing schemas as-is, (e.g. VCARD => hCard, ATOM => hAtom).
fn
and n
have been replaced with p-name
entry-title
, entry-summary
and entry-content
have been replaced with the less redundant p-name
, p-summary
and e-content
.Start publishing!
Microformats-2 by Barnaby Walters is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
/
#