搜索引擎优化:使用结构化数据在搜索谷歌时显示一个类别

时间:2012-10-09 14:35:39

标签: html seo breadcrumbs microdata

我正在尝试使用结构化数据来确保网站在Google搜索结果中包含一个类别。你可以在这个例子中看到我的意思:

http://tinyurl.com/95lryvn

在示例中,它显示了“人体工学椅子”作为类别。

我一直试图通过使用以下内容来复制它:

面包屑

<div itemprop="breadcrumb">
  <a href="/">Home</a> &gt;
  <a href="/sets/AlaraReborn/index.html" itemprop="isPartOf">Alara Reborn</a> &gt;
  <a href="ArdentPlea.html">Ardent Plea</a>
</div>

schema.org isPartOf itemProp(在上面的代码示例中也可见),但我仍然无法显示该类别。

有人可能会发布一个简短的样本,通过googles structured data tester进行测试后会显示一个类别吗?

1 个答案:

答案 0 :(得分:1)

为什么不使用 RDFa ,毕竟,您提供的示例为“ overstock.com ”,他们使用的是RDFa以下是该页面的摘录。 ..

<ul itemprop="breadcrumb" class="horizontal-list bcrumbs">
  <li typeof="v:Breadcrumb" class="bcrumb-1">
    <a property="v:title" rel="v:url" title="Online Shopping" href="http://www.overstock.com/">Online Shopping</a>
  </li>
  <li typeof="v:Breadcrumb" class="bcrumb-2">
    <span class="bcrumb-arrow"></span>
    <a property="v:title" rel="v:url" title="Office Supplies" href="http://www.overstock.com/Office-Supplies/22/store.html">
    Office Supplies</a>
  </li>

    <li typeof="v:Breadcrumb" class="bcrumb-3">
    <span class="bcrumb-arrow"></span>
    <a property="v:title" rel="v:url" title="Office Furniture" href="http://www.overstock.com/Office-Supplies/Office-Furniture/310/dept.html">
      Office Furniture</a>
    </li>


    <li typeof="v:Breadcrumb" class="bcrumb-4">
     <span class="bcrumb-arrow"></span>
      <a property="v:title" rel="v:url" title="Office Chairs &amp; Accessories" href="http://www.overstock.com/Office-Supplies/Office-Chairs-Accessories/3637/cat.html">
      Office Chairs &amp; Accessories</a>
    </li>


    <li typeof="v:Breadcrumb" class="bcrumb-5">
      <span class="bcrumb-arrow"></span>
      <a property="v:title" rel="v:url" title="Ergonomic Chairs" href="http://www.overstock.com/Office-Supplies/Ergonomic-Chairs/22529/subcat.html">
      Ergonomic Chairs</a>
      <i class="last-child"></i>
    </li>

  `

我可以在这里解释一切,但我坚信我无法与谷歌给出的解释相提并论。

所以,如果你没有经过这些解释(下面的链接),我强烈建议你仔细阅读。我希望这些能解决你的问题。