A post on Brian Cray’s blog got me thinking about the ways we can add more information to our web documents so they basically do more stuff. I like a good chat about the semantics of HTML5 tags as much as the next man, but I am certainly no expert on microdata (or The Semantic Web — I’m unsure of the terminology). Here’s what I’m thinking:
What I want additional data to do
For me, the semantic web needs to provide some obvious, general and practical benefits. Such as:
- provide search engines with more data about the document I’m marking up
- enable search engines to display a bit more information about that document in search engine results (e.g. geographical data, ratings, contact info etc.). Google’s rich snippets promise to do this.
- enable browsers to do stuff with the document (e.g. extract information and use it in another application, such as an address book)
It should be pointed out that I’m not seeing much evidence of this sort of usage. While screenshots such as this

A Google search listing that contains nicely formatted, specific event information
… are interesting I don’t come across this stuff very often and it’s having little impact on my online life. In other words, whatever format you use, people need to start doing things with the data.
Semantic choices
There are three ways of adding semantic data to web documents:
- RDFa
- microformats
- microdata
I’ve plumped for microformats for several reasons:
- they appear to be used a bit more than the other formats
- they can do all the things listed in Brian’s post
- WordPress uses them (the
post_classfunction adds anhentryclass to an element and comment authors are marked up usingcite class="fn") - there are no custom vocabularies, which means I can go to a definitive scheme and add the ‘correct’ classes to my HTML. I don’t really want to invent my own schemes —not enough time— and surely having standardised vocabularies makes widespread adoption more likely.
- they’re the easiest to get your head around
- because microformats are added as classes I can style them as well, which means less work and more coherence in the meta structure of my documents (not sure that makes sense!). If I use microdata I have to add itemscope, itemprop and itemtype text and classes so I can style the information.
As I say, I’m certainly no expert on this, so I’m more than willing to be corrected on any inaccuracies or plain wrong–headedness. Are you using additional data? And how?