Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
357 views
in Technique[技术] by (71.8m points)

html - Can you have multiple itemprop=description on a page?

I can't seem to find the answer for this anywhere.

I've got itemscope itemtype="http://data-vocabulary.org/Review" on the body tag.

Now the content on the page is spread across multiple divs with images and such between. If I were to wrap it all, then other content would actually come first before the main body, so I need to be able to put the itemprop="description" on multiple divs.

It seems to show up OK in the google snippets tool but I want to know if it would be fine or whether it'd only take 1 into account?

Picture of rich snippets tool

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Well, you are adding several descriptions for the same item. That’s fine from the Microdata perspective.

Microdata only defines that an item’s properties with the same name are ordered (see the examples), while different properties are "unordered with respect to each other".

Microdata does not define if this should mean that all these descriptions should be consolidated into one description (your use case), or if these are alternative descriptions (for example one could offer descriptions in several languages).

But how consumers (like Google) interpret this, that is up to them; it might be unknown/undocumented; it might change daily. Discussion about this is probably off-topic on SO; it might better fit on Webmasters SE.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...