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>

I have two questions concerning the `itemprop' attribute:

(1) It is true, that per HTML-element there can be just one

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 ...

(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" />


Received on Sunday, 26 February 2012 22:19:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:22 UTC