tkbe

December 13, 2009

Microformats: Boon or Bane?

Filed under: html — tb @ 4:25 am

Jeff Atwood recently wrote a blog-post with the title "Microformats: Boon or Bane?", which inspired me to implement the hCard micro format on our pages.

As Jeff mentions, it's not entirely trivial to get it right, but not rocket-surgery.

The main feeling I'm left with is that it is very US centric, even as it strives not to be. I was left doing hacks like these:

HTML:
  1. mobile:
  2.   <span class="tel">
  3.     <span class="type" style="display:none">cell</span>
  4.     <span class="value">+47 12 34 56 78</span>
  5.   </span>

notice the "mobile:" and "display:none"...

With the Operator extension loaded in Firefox, the result is definitely 1337.

1 Comment »

  1. The microformats community recently made the value-class pattern official. This new pattern (among other things) addresses the localization concerns you mention, giving you an alternative structure for indicating, for example, “mobile” rather than “cell”.

    Jeremy Keith put together a nice breakdown of the pattern: http://ww.adactio.com/journal/1579/. I also did a write up with some examples that may prove useful: http://www.ablognotlimited.com/articles/getting-semantic-with-microformats-part-8-value-class-pattern/.

    Comment by Emily Lewis — December 14, 2009 @ 5:54 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress