在http://schema.org/Product范围内,我想为图像定义标记。通常它看起来如下:
<img itemprop="image" src="/path-to-image.suffix" alt="image-description" />
但是,现代响应式页面使用该<picture>
标签。我试过了...
<picture itemprop="image">
<source media="(max-width: ${viewport-size-1})" srcset="/path-to-image-size-1.suffix">
<source media="(min-width: ${viewport-size-2})" srcset="/path-to-image-size-2.suffix">
<img src="/fallback-path-to-image.suffix" alt="image-description">
</picture>
但它似乎不被谷歌的结构化数据测试工具所接受。将它添加到<img>
标签中<picture>
对我来说似乎不正确,因为它没有突出整个上下文,因此忽略了图像以各种分辨率存在的事实......
标签的正确微数据图像标记是picture
什么?