gpt4 book ai didi

html - 如何使用 schema.org 设置 Review-aggregate?

转载 作者:太空狗 更新时间:2023-10-29 15:13:02 25 4
gpt4 key购买 nike

我有一个项目 - http://preloaders.net .我已将其设置为在谷歌搜索中显示评级(标题下的橙色星星,例如尝试输入预加载器微调器关键字)。一切正常,除了我刚刚修复的主页。

我现在将整个标记重新编码为 HTML5(我对它还很陌生)并使用 schema.org 并将所有产品包含到整个模式中,但我不知道模式中 Review-aggregate 的替代品是什么.org 是,所以我正在尝试网页。 Google 站长不显示错误,但问题是:下面的代码是否仍会显示星标,还是我应该做其他事情?

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>my title</title>
</head>

<body>
<nav>
<a href=""></a>
</nav>
<main>
<section>
<h1>AJAX LOADERS</h1>
<article itemscope itemtype="http://schema.org/Product">
<figure>
<img itemprop="image" src="/preloader.gif" alt="">
<figcaption itemprop="description">
Spinning Christmas tree with balls.
</figcaption>
</figure>
<a href="#" title="#" itemprop="url">
<h3 itemprop="name">3D Christmas tree </h3>
</a>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="priceCurrency" content="USD">$</span><span class="price" itemprop="price">2.95</span>
</div>
<div class="favorite"></div>
<div class="add-to-cart"></div>
<div class="frames-amount">30 fr</div>
<div class="dimensions">256x256</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
Average Rating: <span itemprop="ratingValue">5</span>
Votes: <span itemprop="ratingCount">12</span>
</div>
</article>
</section>
<aside>
<article itemscope itemtype="http://schema.org/Product">
<a href="/en/free">
<h3 itemprop="name">Free templates</h3>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="priceCurrency" content="USD">$</span><span class="price" itemprop="price">0</span>
</div>
<div itemprop="description">
Spinning Christmas tree with balls.
</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
Average Rating: <span itemprop="ratingValue">5</span>
Votes: <span itemprop="ratingCount">12</span>
</div>
</a>
</article>
</aside>
</main>
<footer>
<nav>
<a href=""></a>
</nav>
</footer>
<script type="application/ld+json">
{ "@context": "http://schema.org",
"@type": "WebPage",
"name": "Loading GIF & APNG (AJAX loaders) generator",
"description": "More than 800 free and premium ajax loader (loading animated GIF and APNG) spinners, bars and 3D animations generator for AJAX and JQuery",
"aggregateRating":
{"@type": "AggregateRating",
"ratingValue": "4.9",
"reviewCount": "7",
"itemReviewed": "AJAX loaders generator"
}
}
</script>
</body>

</html>

很抱歉这个菜鸟问题,只需要确保我的方向是正确的。

提前致谢。

最佳答案

Here is an example of what you have to do

And here is the official documentation

您所做的与示例中的代码非常相似,所以我想您所做的足以获得星星

关于html - 如何使用 schema.org 设置 Review-aggregate?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41077745/

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