Rating

Ratings on the Turbo page are implemented according to the schema.org/Rating protocol.

To add a rating, use the div element with the meta element nested in it.

<div itemscope itemtype="http://schema.org/Rating">
    <meta itemprop="ratingValue" content="5">
    <meta itemprop="bestRating" content="10">
</div>

The div element contains the following required attributes:

Attribute Description
itemscope Does not take any values.
itemtype Takes the http://schema.org/Rating value.
Attribute Description
itemscope Does not take any values.
itemtype Takes the http://schema.org/Rating value.

The div element contains the following required attributes:

Attribute Description
itemprop
Take the following values:
  • ratingValue — Rating value.
  • bestRating — The maximum rating value.
content

Enter any positive number as the value.

The number of stars is always 5, regardless of the maximum rating value. For example, if you set the ratingValue attribute to 5 and the bestRating attribute to 10, 2.5 stars are shown.

View an example


<div itemscope itemtype="http://schema.org/Rating">
    <meta itemprop="ratingValue" content="5">
    <meta itemprop="bestRating" content="10">
</div>
Attribute Description
itemprop
Take the following values:
  • ratingValue — Rating value.
  • bestRating — The maximum rating value.
content

Enter any positive number as the value.

The number of stars is always 5, regardless of the maximum rating value. For example, if you set the ratingValue attribute to 5 and the bestRating attribute to 10, 2.5 stars are shown.

View an example


<div itemscope itemtype="http://schema.org/Rating">
    <meta itemprop="ratingValue" content="5">
    <meta itemprop="bestRating" content="10">
</div>