2 itemprops for 2 colors of the same product?

久未见 提交于 2019-12-02 07:02:56
unor

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.

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

The color of the product.

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!