同一产品的 2 种颜色的 2 项道具? [英] 2 itemprops for 2 colors of the same product?

查看:25
本文介绍了同一产品的 2 种颜色的 2 项道具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在有两种颜色的产品中,使用两个 itemprop 项目更好还是只使用一个?

In a product with two colors, is it better to use two itemprop items or just one?

<meta itemprop="color" content="red" />
<meta itemprop="color" content="black" />

<meta itemprop="color" content="red and black" />

我正在使用 https://schema.org/ 词汇.

推荐答案

从微数据的角度来看,两种方式都是可能的.不同之处在于您在第一种情况下添加了两个值,在第二种情况下添加了一个值.

From the Microdata perspective, both ways are possible. The difference is that you are adding two values in the first case, and one value in the second case.

从 Schema.org 的角度来看,我们必须了解如何使用此属性.color 的描述说:

From the Schema.org perspective, we’d have to understand how this property was meant to be used. The description of color says:

产品的颜色.

这里使用单数,因此这可能是使用第一个示例的提示.但它使用的是颜色"而不是一种颜色",这可能表明他们只考虑了产品只有一种(主要)颜色的情况.

It uses singular here, so this could be a hint for using your first example. But it uses "The color" and not "A color", which might suggest that they only thought of cases where a product has only one (primary) color.

我认为使用多个 color 属性更有意义.为每个值使用自己的属性时,消费者不必解析您的字符串(可能包含多种颜色)并尝试提取每种颜色.

I think it makes more sense to use several color properties. When using an own property for each value, consumers wouldn’t have to parse your string (possibly containing several colors) and trying to extract each color.

我唯一一次考虑使用一个包含多种颜色的属性时,我认为它是一种包含其他颜色的新颜色",可以这么说.

The only time I’d consider using one property containing several colors would be when I consider it to be "a new color containing other colors", so to say.

哦,为了确定:您的标记意味着一种产品是红色的黑色,并且不是您有红色的产品黑色.

Oh, and just to be sure: Your markup would mean that one product is red and black, and not that you have the product available in red or in black.

这篇关于同一产品的 2 种颜色的 2 项道具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆