uses的ImageObject示例使用itemprop="contentUrl"。
我在Google中测试了这个简化的代码:https://search.google.com/structured-data/testing-tool给了我一个错误:
url字段的值是必需的。
<div itemscope itemtype="http://schema.org/Article">
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="contentUrl" src="1.png" alt="alt of the image">
<p itemprop="caption">Caption of the image</p>
</div>
<h1 itemprop="name">Title of the post</h1>
<div itemprop="articleBody" class="text">
<p>This is the body of the post</p>
</div>
</div>如何在Google中解决这个错误?
发布于 2016-08-27 15:52:50
除了url属性之外,还可以提供contentUrl属性:
<img itemprop="contentUrl url" src="1.png" alt="alt of the image">(理想情况下,谷歌将使用/require contentUrl代替url作为其文章丰富成果的图像。)
https://webmasters.stackexchange.com/questions/98754
复制相似问题