gpt4 book ai didi

html - 在 Google 搜索结果中显示文章评分

转载 作者:技术小花猫 更新时间:2023-10-29 12:01:45 24 4
gpt4 key购买 nike

我正在编写一个社区评价帖子的评论网站。我注意到 Google 可以获取此评级并将其显示在其搜索结果中。有谁知道这是如何实现的?

例如 IGN 等评论网站,在下面的屏幕截图中,他们表示他们的评论评分为 9.3/10。

enter image description here

我如何向 Google 表明我自己的评价等级?也许是某种自定义元标记或其他东西。

最佳答案

您可以使用 Span 类来做到这一点。检查谷歌的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>

关于html - 在 Google 搜索结果中显示文章评分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7138853/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com