有人能建议为用户可以购买产品的页面添加正确的Schema.org标记的最佳方法吗?我在那里添加了Product标记(用于富片段)。
我想增加问这个产品问题的可能性,但是我没有发现我可以用什么属性作为嵌入式项目。
示例:
<div itemscope="" itemtype="http://schema.org/Product">
<meta itemprop="brand" content="Brand">
<meta itemprop="url" content="URL">
......
<div id="question1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question">
......
<div id="answer1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
<div id="answer2" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
</div>
...
<div id="question10" itemprop=??????? itemscope="" itemtype="http://schema.org/Question">
......
<div id="answer1" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
<div id="answer2" itemprop=??????? itemscope="" itemtype="http://schema.org/Question/Answer">....</div>
</div>
</div> 发布于 2017-07-07 16:24:21
没有属性可以将Question添加到Product中。
但是有一个属性可以表示Question是关于Product:about的。
有不同的方法可以用微数据来标记这一点。下面是一个使用itemref的示例
<div id="product-42" itemprop="about" itemscope itemtype="http://schema.org/Product">
</div>
<div itemscope itemtype="http://schema.org/Question" itemref="product-42">
</div>
<div itemscope itemtype="http://schema.org/Question" itemref="product-42">
</div>要将Answer链接到Question,可以使用suggestedAnswer/acceptedAnswer。
https://stackoverflow.com/questions/44973411
复制相似问题