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

The examples on schema.org seem to indicate adding addition tagging to indicate item properties is the norm. However, can these be added with an existing tag? For instance in the following line of code:

<span itemprop="price" id="product_price" style="white-space: nowrap;">

Would the search engines supporting schema.org microformats detect this property?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Yes, that is the way they are implemented. You can use them as an attribute to a tag.

I just took the logical div and span tags that already existed in the template and added the needed attributes. Something along the line of:

<div class="product-block" itemscope itemtype="http://schema.org/Product">
    <img src="http://media.example.com/image/PartImg.jpg" alt="*" title="*" itemprop="image" />
    <h2 class="product-name" itemprop="name">Part Name Here</h2>
    <p itemprop="manufacturer">Part Mfg.</p>
    <meta itemprop="productID" content="sku:PartNo" />
    <meta itemprop="url" content="http://www.example.com/part-page.html" />
    <div class="product-specs" itemprop="description">
        <p>Paragraph of description here</p>
    </div>
</div>

The only additions were the meta tags. Where the SKU displays is outside of this block and adding a self referential canonical link would only confuse the customer.

When I run them through Google's rich snippet/microformat/microdata check, it pulls up all the relevent items properly identified. http://www.google.com/webmasters/tools/richsnippets

share|improve this answer
    
Excellent! Many thanks, I thought it wasn't working because the richsnippets tool did not detect some of my properties. Based on this I found out I closed to 'offers' div too early :) –  ToothlessRebel Dec 20 '11 at 20:38
    
Actually, that wasn't it. –  ToothlessRebel Dec 20 '11 at 20:53
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.