Yahoo! Developer Network Blog
« Previous | Main | Next »
May 15, 2008
Are Microformats Right for Your Site?
Adding structured data to your site doesn't need to be complicated or difficult. It can be as simple as adding a handful of attributes to your page -- "'class"and "rel" are the most common. Many sites use semantic markup, and already have these attributes, in which case you can insert additional values into existing attributes, since these actually hold space-separated lists. Microformats is the name of one common method for using this kind of simple markup.
Microformats are community-driven standards, put together and maintained by volunteers outside of a formal organization like IETF. Typically, they cover well-worn use cases, a concept called "paving the cowpaths." A number of microformat specifications in various stages of development are available at microformats headquarters.
Initially, the Yahoo! Search indexer supports the following microformats:
* hCard for personal or organization contact info
* hCalendar for event descriptions and timelines
* hAtom for syndicated content as might appear in an RSS feed
* hReview to record review ratings such as "8.5 out of 10"
* XFN to track relationships on the social graph in a lightweight fashion
The Web has a huge number of helpful articles and tutorials on using microformats. If the structured data your site exposes falls into any of categories above, then microformats are probably a good choice for you.
Here's a simple example. If your personal site already has markup like this, pointing to one of your other sites:
<a href="http://myothersite.com/blog">My site</a>
Add XFN with a single attribute, like this:
<a rel="me" href="http://myothersite.com/blog">My site</a>
The value of rel="me" indicates that the other site is also representative of you.
A more involved example requires changes across more than one element. Let's say a page mentions a review of an iPod, like this:
<div>Overall, I give the iPod a rating of 8 (out of 10)</div>
To add hReview markup to this, a few additional wrapper elements are needed, like this:
<div class="hreview">
Overall, I give the
<span class="item">
<span class="fn">iPod</span>
</span>
a rating of
<span class="rating">
8
</span>
(out of
<span class="best">
10
</span>
)
</div>
This is simplified markup. Consult the microformats.org site for specific details. In general, these changes indicate that the overall structure is a review ("hReview"), that the item being reviewed is an iPod (additional details such as a URL are helpful), and the rating is 8 out of a possible 10.
What if your structured markup needs go beyond the list of supported microformats? Please provide us with feedback, as we are continuously evaluating and adding support for additional microformats. On the other hand, you might want to consider using more expressive RDF markup. If you want to expose structured data but aren't ready (or able) to make site changes yet, then you might consider writing a custom data service. Stay tuned, we'll cover these topics in future blog posts.
By the way, we'll be talking about microformats among other things later today (Thursday, May 15) at the SearchMonkey Launch Party at Yahoo!'s Sunnyvale headquarters. Here are the details – join us for a bit of SearchMonkey talk and a plenty of beer, food, and schwag.
Micah Dubinko
SearchMonkey Team Alumnus
Posted at May 15, 2008 7:11 AM | Permalink
Comments
"Initially, the Yahoo! Search indexer supports the following microformats"
Is that indexer live now? Are microformats picked up right now?
Posted by: Richard Bradshaw at May 15, 2008 9:30 AM
I want to say thankyou... Thankyou.
It's fantastic that Yahoo! has been acknowledging and utilising things like microformats. I appreciate (and I'm sure many others do too) the part you are playing in the development of the web.
Will the search indexer support RDF?
Posted by: Dylan Fogarty-MacDonald at May 15, 2008 5:06 PM
Micah, it's great that Yahoo! is working with microformats on the indexing side of things. Any comments on http://socialstrategist.com/2008/05/28/how-the-semantic-web-will-wont-work as far as the creator/consumer use side of things goes?
Posted by: Jay Neely at June 1, 2008 6:11 PM
microformat works extremely well with all my web applications, especially when using firefox operator add-on. It makes it so easy to export data, and bridge applications.
Posted by: Jason at June 5, 2008 5:05 PM
Post a comment
Comment Policy: We encourage comments and look forward to hearing from you. Please note that Yahoo! may, in our sole discretion, remove comments if they are off topic, inappropriate, or otherwise violate our Terms of Service. Fields marked with asterisk '*' are required.
Subscribe
Recent Blog Articles
view all
YQL Open Table for Google Buzz now live
Tue, 09 Feb 2010
INSERT INTO twitter.status ...
Mon, 08 Feb 2010
Announcing the Yahoo! Brasil Open Hack Day 2010, 20-21 March
Mon, 08 Feb 2010
Marketing hacks, linchpins, and tech women of valor
Sun, 07 Feb 2010
Yahoo! India invites you to join the first India Hadoop Summit
Thu, 04 Feb 2010
Recent Links
Appcelerator Titanium + Yahoo YQL on Vimeo
Mon, 08 Feb 2010
Tue, 02 Feb 2010
PhoneGap | Cross platform mobile framework
Sat, 30 Jan 2010
Web developers can rule the iPad - O'Reilly Radar
Sat, 30 Jan 2010
rc3.org - Is the iPad the harbinger of doom for personal computing?
Thu, 28 Jan 2010
Archives
2010
2009
2008
2007
2006
2005
Recent Readers

