首页 > 解决方案 > 为谷歌搜索结果添加星星,没有 wordpress,只有 html css

问题描述

如何仅使用 html 和 css 创建评分星?

我正在从头开始创建博客。我想使用该 wordpress 功能将星添加到谷歌结果中。

如何仅使用 html 和 css 来获得此信息?(我没有使用wordpress)

更新

我应该添加此代码,它会出现在谷歌搜索结果中吗?

  <div itemscope itemtype="http://schema.org/Review">
 <div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Restaurant">
<img itemprop="image" src="seafood-restaurant.jpg" alt="Catcher in the Rye"/>
<span itemprop="name">Legal Seafood</span>
 </div>
 <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<span itemprop="ratingValue">4</span>
 </span> stars -
<b>"<span itemprop="name">A good seafood place.</span>" </b>
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Bob Smith</span>
 </span>
    <span itemprop="reviewBody">The seafood is great.</span>
    <div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
     <meta itemprop="name" content="Washington Times">
   </div>
   </div>

标签: htmlcsswordpress

解决方案


推荐阅读