Thursday, 21 July 2011

Microformats

Today one of the things that came up was microformats. When I think of html I don't think "machine readable". Turns out I'm wrong. I didn't think that by just adding some css classes in sort-of a structured way you could create info that was reusable. I assumed that you'd have to set up another view (xml, json, ical, etc).

Turns out that's how you can have a google recipe search and how google can show you (from its search page) customer reviews (4 out of 5 stars). From a website owner I can see the appeal since they have to tweak the markup that they already provide. From consumers of that markup (google, etc) it's good because its more likely the data the users are being show is the same that's being shown to you.

I started adding some span's, css classes, and other containers to the index page to line up with the hAtom 0.1 format. I'll continue to update it since the page neither validates "properly" or using the Rich Snippets Testing Tool from google. More work can be done, but interesting none the less.

Aside: if you ever need to find the ISO 8601 date format for perl, it's "%Y-%m-%dT%H:%M:%S". Via dzone.

No comments:

Post a Comment