用作参考:https://support.google.com/webmasters/answer/146750?hl = zh-CN
您会在"产品"下注意到有一个类别属性,而且页面下方有一个示例:
<span itemprop="category" content="Hardware > Tools > Anvils">Anvils</span>
Run Code Online (Sandbox Code Playgroud)
我完全模仿了:
<span itemprop="category" content="kitchen sinks > stainless steel sinks > undermount">undermount</span>
Run Code Online (Sandbox Code Playgroud)
然而,当我使用Google的结构化数据工具测试它时,我收到错误:
错误:页面包含属性"类别",它不是架构的一部分.
我在例子中也意识到,它使用的是data-vocabulary.org→Product,我在使用schema.org→Product.
现在在http://schema.org/Product上,它没有提到任何类别.schema.org不提供类别吗?或者我错过了什么?