Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

In a few pages in a website, similar products are displayed in the same page. Each item has its own description (almost identical) and its own SKU (also almost identical).

How can I use microdata correctly here?

I have tried, for testing purposes, to add the code for image, description and SKU for all 3 items in one page, and I have tested the page in Google's Structured Data Testing Tool.

Google read the data and displayed the URL for all 3 images, all 3 descriptions, and all 3 SKUs.

Is this the correct approach, or is this wrong?

Not sure if it makes a difference, but at the moment, this is not an e-commerce site.

<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Test name 1</span>
<img src="test1.jpg" />
<span itemprop="description">Description test 1</span>
<span itemprop="sku">#001</span>
</div>

<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Test name 2</span>
<img src="test2.jpg" />
<span itemprop="description">Description test 2</span>
<span itemprop="sku">#002</span>
</div>

<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Test name 3</span>
<img src="test3.jpg" />
<span itemprop="description">Description test 3</span>
<span itemprop="sku">#003</span>
</div>
share|improve this question
    
Looks okay to me, is there any reason you think it's incorrect? –  Brendon Aug 16 '13 at 16:19
    
It's unclear whether you're allowed to have more than 1 product per page using microdata. There's now explanation or examples of this on schema.org. –  guisasso Aug 16 '13 at 16:28
add comment

1 Answer

up vote 1 down vote accepted

Yes, it's OK to have Schema Product Properties for multiple products on a page, as demonstrated here:

Schema.org Markup of a SERP / Product Listing

(And in the top example of this related question)

If Google's Structured Data Testing Tool displays each of the items under the Extracted structured data section with the correct data, as it does here (using the example in the first link above), then you should be fine.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.