产品的SEO微数据是否应包含描述中的HTML标记

时间:2015-09-25 19:22:09

标签: seo schema.org

我的产品架构输出如下所示。 Shell我从"meta itemprop="description" content="中删除了html代码,或者它必须只是纯文本?

<span itemscope itemtype="http://schema.org/Product">
  <meta itemprop="url" content="http://www.testest.com/bo-clark-collection.html" >
  <meta itemprop="name" content="Bo Clark Collection" >
  <meta itemprop="productID" content="1194" >
  <meta itemprop="description" 
     content="<html><body><div><p>Special eye-catcher: test.</p></body></html>" >   
  <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="price" content="10,00 EUR" />
    <meta itemprop="priceCurrency" content="EUR" />
    <link itemprop="availability" href="http://schema.org/InStock" />
  </span>
</span>

2 个答案:

答案 0 :(得分:1)

微数据应嵌入HTML中,但带有微数据的标签可以包含HTML。说明是代码中的<meta>标记,因此它不需要HTML,因为它永远不会显示。

看起来您将关键的结构化数据放在不可见的标签中,这对货币,价格,日期来说没问题,但google states通常您应该适应现有显示的微观数据 数据。微数据可以在页面上的许多不同的标签或块结构中,只要它们嵌套在单个块结构下(或者 - 但是看起来最有用)。 HTML标签中没有微数据的任何内容都不会引起问题 - 在搜索结构化数据时会被忽略。

考虑更改代码以便微观数据分散,例如

<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="url" content="http://example.com/sales" />
<h3 itemprop="name">Bo Clark Collection</h3>
<img src.... >
   <strong>Product code:</strong><span itemprop="productID">1194</span> (in stock)<link itemprop="availability" href="http://schema.org/InStock">   
   <br> 
   <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">Price: <span itemprop="price">10,00</span><span itemprop="priceCurrency">EUR</span></span>
   <div itemprop="description">
    <p>Special eye-catcher: the silver Guess Wordmark test test.</p>
     <ul><li>Silver Guess Wordmark</li>
     <li>Leather in Croco-Style</li>
     <li>Inner lining Suede</li>
     <li>Tailor-made cutouts for ports and camera</li>
     <li>Color: <span itemprop="color">Black</span></li></ul>
    </div>
</div>

一个微数据可以嵌入到另一个微数据中,正如我在这里用颜色(黑色)完成的,这也是描述的一部分。它适用于列表项。如上所述的价格遵循谷歌价格的例子。

答案 1 :(得分:-1)

您应该只使用纯文本而不是html标记。请参阅https://developers.google.com/structured-data/rich-snippets/products

上的产品架构示例

只需写下以下模式:

<p itemprop="description">Special eye-catcher: the silver Guess Wordmark test test. Silver Guess Wordmark. Leather in Croco-Style. Inner lining Suede. Tailor-made cutouts for ports and camera. Color: Black</p> 

建议在描述中使用纯文本,因为Google在其SERP上以纯文本形式显示描述。在我看来,Google只以纯文本而不是斜体,粗体或带下划线的方式显示描述,因此使用类似的标签,并且在此处无关紧要。

相关问题