SourceToday, we’re happy to announce support for microdata for use in rich snippets in addition to our existing support for microformats and RDFa. By using microdata markup in your web pages, you can specify reviews, people profiles, or events information on your web pages that Google may use to improve the presentation of your pages in Google search results.
Here is a simple HTML block showing a section of a review of “L’Amourita Pizza”:
Code:
<div>
<h1>Review: L’Amourita Pizza</h1>
Written by Bob Smith
Jan 15, 2010
Rated <b>4.5</b> - Excellent
</div>
Here is the same HTML with microdata added to specify the restaurant being reviewed, the author and date of the review, and the rating:
Code:
<div itemscope itemtype=”http://data-vocabulary.org/Review”>
<h1>Review: <span itemprop=”itemreviewed”>L’Amourita Pizza</span></h1>
Written by <span itemprop=”reviewer”>Bob Smith</span>
<time itemprop=”dtreviewed” datetime=”2010-01-15”>Jan 15, 2010</time>
Rated <b itemprop=”rating”>4.5</b> - Excellent
</div>