Display an article rating in Google search results

二次信任 提交于 2019-11-29 01:16:37
Jordy

You can do that with a Span class. Check Google's Structure Data guide for Review:

A review is someone's evaluation of something. We support reviews and ratings for a wide range of schema.org types, including businesses, products, and different creative works such as books or movies.

Google displays the following types of reviews in search results:

  • Critic review: A snippet from a longer review article that a single editor has created, curated, or compiled for a publisher.

  • Review snippets: A rich result (previously known as a rich snippet) of a review or rating markup from a review website, usually an average of the combined rating scores from reviewers. Review snippets appear in Google Search results either under the search result or in the Google Knowledge Cards.

[...]

Here's an example of an aggregate rating.

<div itemscope itemtype="http://schema.org/Book">
  <h2 itemprop="name"> Super Book </h2>
  <div itemprop="description">Ultra interesting. Super impressive.</div>
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <div>Book rating:
      <span itemprop="ratingValue">88</span> out of 
      <span itemprop="bestRating">100</span> with
      <span itemprop="ratingCount">20</span> ratings
    </div>
  </div>
</div>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!