For those of you who haven't heard of rich snippets, it essentially involves inserting special data into HTML markup that describe content on the page. The benefit would be really neat looking search results on Google.

For example (and this is just an example), my Stack Overflow profile might look like:

Search result snippet for the user "George Edison" on Stack Overflow, showing reputation points and location, as well as the usual snippet description

Pretty neat, eh? So what needs to be done to implement this? Well, according to the rich snippet documentation, you need to use one of three formats: microdata, microformats, or RDFa.

Microdata is probably the easiest and looks something like this:

<div itemscope itemtype="http://data-vocabulary.org/Person">
    <span itemprop="name">George Edison</span><br />
    <a href="http://www.quickmediasolutions.com" itemprop="url">
    <span itemprop="title">Regular User</span>
  • I think you might be.. imagining.. the way google processes this data. Can you provide a screenshot of a REAL ACTUAL SEARCH RESULT that shows up this way, that is, uses the metadata on the page? Because that would be highly exploitable by evildoers. Oct 4, 2011 at 23:03
  • @Jeff: Sure. A Google search for "Cut the Rope Android" displays a rich snippet from the Android Market. The rating and price data are pulled directly from the microdata on the page. Oct 4, 2011 at 23:48
  • that is a trusted Google site. Can you provide an example from a site that isn't operated by Google? Oct 5, 2011 at 0:13
  • 1
    @Jeff: Sure. A Google search for "san francisco concerts yelp" will display a couple of events that were pulled from the hCard data on the page (hCard is one of the supported formats for rich snippet data). Oct 5, 2011 at 0:45
  • This blog post suggests that rich snippets were activated automatically some time ago: webnodes.com/rich-snippets-enabled-automatically so it might be possible to pull this off maybe... Jun 16, 2012 at 23:08
  • @ChristopheD: It seems like Stack Apps already includes rich snippet data - it's turning up in custom searches. Jun 17, 2012 at 0:25


You must log in to answer this question.

Browse other questions tagged .