W3C home > Mailing lists > Public > public-vocabs@w3.org > March 2013

Re: ifRelatedTo

From: Cosmin <cpaun88@gmail.com>
Date: Fri, 08 Mar 2013 17:01:32 +0200
Message-ID: <5139FD4C.5090206@gmail.com>
To: public-vocabs@w3.org
Dear Dianne,

Property /isRelatedTo /expects a /Product /type, therefore you need to 
declare a new itemscope of type /Product/.

Notice: When using itemprop inside of an <a></a> element, the value of 
the property is the value of the href attribute.

See bellow an example:

<div class="product-view" itemscope 
itemtype="http://schema.org/Product"><h2 itemprop="name">Item A</h2><div 
class="description" itemprop="description">

     ...
     </div>
     See related product:
     <div  itemprop="isRelatedTo"itemscope  itemtype="http://schema.org/Product">
       <a  itemprop="url"href="..."><span  itemprop="name">Item B</span></a>
     </div>
     <div  itemprop="isRelatedTo"itemscope  itemtype="http://schema.org/Product">
       <a  itemprop="url"href="..."><span  itemprop="name">Item C</span></a>
     </div>
   </div>


Regards,
Cosmin
Received on Friday, 8 March 2013 19:17:57 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 19:17:57 GMT