Can I use itemprop
image
directly?:
<article itemscope itemtype="http://schema.org/Article">
<img itemprop="image" src="1.png">
<h1 itemprop="headline name" >Title of the post</h1>
<div>2016-01-07</div>
<p itemprop="articleBody">This is the body of the post</p>
</article>
Or should I embed inside ImageObject
?
<article itemscope itemtype="http://schema.org/Article">
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="contentUrl url" src="1.png" alt="alt of the image">
</div>
<h1 itemprop="headline name" >Title of the post</h1>
<div>2016-01-07</div>
<p itemprop="articleBody">This is the body of the post</p>
</article>
When I use the Google tool (www.google.com/webmasters/markup-helper/) it gives me the first option.
But then the testing tool gives me an error:
The attribute image.itemtype has an invalid value