Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Schema.org give a div a itemprop="image"?

Schema.org give a div a itemprop="image"?

Problem

I am replacing an image with a

with background-image for the reason of background-size: cover; The page is structured the same way as before with a image just that "the image" is a div now.

Does is makes sense to give that itemprop to a

?
Problem Courtesy of: Wayne's World

Solution

CSS is not recognized by any Microdata parser that I'm aware of. You'll need to add a meta tag to specify the image like this:

Solution courtesy of: Shawn Simister

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Schema.org give a div a itemprop="image"?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×