Skip to content

Instantly share code, notes, and snippets.

@nicolaslule
Last active August 15, 2018 14:23
Show Gist options
  • Save nicolaslule/4f1fb162d9d82757532aa20128273245 to your computer and use it in GitHub Desktop.
Save nicolaslule/4f1fb162d9d82757532aa20128273245 to your computer and use it in GitHub Desktop.
Local business aggregate rating example.
<div itemscope itemtype="http://schema.org/LocalBusiness">
<meta content="Home And Garden Lawn Care" itemprop="name">
<meta content="$25-$45" itemprop="priceRange">
<meta content="https://homeandgardenlawncare.com/wp-content/uploads/2017/12/cute-lawn-care-background.jpg" itemprop="image">
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<h2><span itemprop="name">Home And Garden Lawn Care</span></h2>
<div>
<span>Rating <span itemprop="ratingValue">5.0</span> / 5 out of <span itemprop="reviewCount">3</span> Reviews
</span>
</div>
<div class="rating-input">
<span class="fa fa-star fa-full"></span>
<span class="fa fa-star fa-full"></span>
<span class="fa fa-star fa-full"></span>
<span class="fa fa-star fa-full"></span>
<span class="fa fa-star fa-full"></span>
</div>
</div>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress" class="address">
<span itemprop="addressLocality">Joliet</span>,
<span itemprop="addressRegion">IL</span>
<span itemprop="postalCode">60435</span>
</div>
<p>
<span itemprop="telephone"><a href="tel:+18157142174"> (815) 714-2174</a></span>
</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment