W3C home > Mailing lists > Public > public-vocabs@w3.org > February 2012

Two questions about itemprop

From: Chuck <chuck42@gmx.de>
Date: Sat, 25 Feb 2012 17:02:15 +0100
To: public-vocabs@w3.org
Message-ID: <1330185735.1853.12.camel@laptop>
Hello,

I have two questions concerning the `itemprop' attribute:

(1) It is true, that per HTML-element there can be just one
`itemprop'?! 

An example: If I want to write a homepage for me, the following code
would not be correct, right?:

<body itemscope itemtype="http://schema.org/ProfilePage">
   <div itemprop="about" itemprop="author" itemscope itemtype="http://schema.org/Person">
      ... something about my person ...
   </div>
</body>

(2) Can I nest the `itemprop' attribute? Would the following code be correct?

<div itemscope itemtype="http://schema.org/Person">
   <a href="http://myhomepage.com" itemprop="url">
      <img src="myimage.jpg" itemprop="image" />
   </a>
</div>

Greetings,

Chuck
Received on Sunday, 26 February 2012 22:19:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:59 GMT