Code for a Review Snippet for Business
Mark E.
Here's an example of the code for implementing a Review Snippet for a Business in Google:
<div itemscope itemtype="http://schema.org/Review">
<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/LocalBusiness">
<h1 >Business Name</h1>
<img src="/business-image.jpg" alt="Business Image">
</div>
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<span >4.5</span> out of
<span >5</span>
</div>
<div >
<span >Reviewer Name</span>
</div>
<div itemprop="reviewBody">
This business is amazing. The staff is friendly and helpful, and the service is top-notch.
</div>
<div >2022-03-01</div>
</div>
In this example, we have a Review for a Local Business with a name and an image, a rating value (4.5) and the author's name, review body and date published. Note that the itemscope
and itemtype
attributes are used to define the type of schema being used, and the itemprop
attribute is used to specify which property each element represents.