: Schema.org caption inside Article? Ho to use Schema.org in the caption of an image? I see that caption is not present in BlogPosting nor Article. I made a search and it seems that it is
Ho to use Schema.org in the caption of an image?
I see that caption is not present in BlogPosting nor Article. I made a search and it seems that it is in ImageObject.
But if I am inside itemscope Article, can I use itemprop="caption"? I mean, can I use the code example below?
<div itemprop="caption">Caption of the image</div>
If not, how to use caption inside Article or BlogPosting?
<div itemscope itemtype="http://schema.org/Article">
<img itemprop="image" src="1.png">
<div>Caption of the image</div>
<h1 itemprop="headline name" >Title of the post</h1>
<div itemprop="datePublished" content="2016-01-07" >2016-01-07</div>
<div itemprop="articleBody" >
<p>This is the body of the post</p>
</div>
</div><!-- end schema Article -->
More posts by @Gail5422790
1 Comments
Sorted by latest first Latest Oldest Best
You have to provide an ImageObject item, and you have to add the caption to this ImageObject item. Otherwise you would add the caption to the Article, which is not what you want (and caption isn’t defined for Article anyway).
So in Microdata it could look like:
<div itemscope itemtype="http://schema.org/Article">
<!-- Article properties here -->
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<!-- ImageObject properties here -->
<p itemprop="caption">Caption of the image</p>
</div>
<!-- Article properties here -->
</div>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.