[uf-discuss] microformats as HTML5 microdata - example discussion

Corey Mwamba send.missive at coreymwamba.co.uk
Tue Aug 17 20:05:07 PDT 2010


I was reading 


and did a small bit of thinking around the use of the item/itemprop 
attributes. I actually put a couple of examples in the wiki itself - but 
thought it would be polite to post here as well and ask for any feedback or 
potential issues. Apologies if this has been discussed before.

My examples were for an hCard:

<!DOCTYPE html>
<html lang="en">
<title>Corey Mwamba</title>
<section item="vcard" itemtype="http://microformats.org/profile/hcard" 
<h1 itemprop="fn">Corey Mwamba</h1>
<div itemprop="adr">
<p itemprop="street-address">56 Nowhere Road</p>
<p itemprop="locality">Nowhere</p>
<p itemprop="postal-code">NO1 6QT</p>
<a href="http://www.coreymwamba.co.uk/" itemprop="url">My web site</a>

And an hCalendar:

<!DOCTYPE html>
<html lang="en">
<title>Web 2.0 Conference</title>
<div item="vevent" itemtype="http://microformats.org/profile/hcalendar" 
 <a itemprop="url" 
 <span itemprop="summary">Web 2.0 Conference</span>: 
 <time itemprop="dtstart" datetime="2005-10-05">October 5</time>-
 <time itemprop="dtend" datetime="2005-10-07">7</time>,
 at the <span itemprop="location">Argent Hotel, San Francisco, CA</span>

I was wondering: 

1. would the profile for microformats have to be re-written for a parser to be 
able to pick up the itemprops? 
1a. How hard is that to do?
1b. Would it be worth it?

2. Can the use of item attributes scale to the potential complexity of 
microformats? My initial thoughts were that it could - as stated on the page 
you could use itemref to include another item - but perhaps someone more 
technically minded can see an issue?

All the best,


More information about the microformats-discuss mailing list