如何为 Google 架构产品输入多种颜色?

How to enter multiple colors for Google Schema Product?

我店里的一些产品有多种颜色。 Google 是否考虑了模式中的多种颜色,这是实现它的有效方法吗?

<div itemscope itemtype="http://schema.org/Product">
Other items....
    <span itemprop="color"> Color 1 </span>
    <span itemprop="color"> Color 2 </span>
    <span itemprop="color"> Color 3 </span>
</div>

下面是Google结构化数据测试工具的截图

查看他们的指南 Follow the structured data guidelines 中的以下 Google 推荐:

Completeness

The more recommended properties that you provide, the higher quality the result is to user.

因此,使用多种颜色来展示您的产品可能是一个很好的解决方案。

乍一看,您提供的标记微数据的示例在技术上是正确的。但是,必须考虑到根据同一指南的事实:

Relevance

Your structured data should be a true representation of the page content.

因此,使用所提供的信息可能无法准确确定微数据的正确性。

由于用户可能不知道 Pantone 5773 等颜色的含义,因此设置一个所有用户都能理解的颜色名称可能会有用,您可以从 W3 color table. For machines, you can set identification for each of your colors. In this case, it is worth considering the fact that you represent the color in the HTML document, so it may be useful to use the identifier used in Web-color, for example, the color HEX or RGB. To convert Pantone to HEX or RGB, you can use the free online tool Pantone to HEX。因此,您的 Pantone 7413C 微数据标识符可能如下所示:

<meta property=color content=#DC8633>