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

Re: Two questions about itemprop

From: Jason Douglas <jasondouglas@google.com>
Date: Sun, 26 Feb 2012 17:25:18 -0800
Message-ID: <CAEiKvUD8Okv_srK0apUs_W1OH=XWyUVjX4aYj=ou=NPDKXFqaA@mail.gmail.com>
To: Chuck <chuck42@gmx.de>
Cc: public-vocabs@w3.org
On Sat, Feb 25, 2012 at 8:02 AM, Chuck <chuck42@gmx.de> wrote:

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

itemprop="about author"


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

Yes, that's fine.  DOM nesting doesn't matter, only itemscope nesting.


>
> Greetings,
>
> Chuck
>
>
>
>
Received on Monday, 27 February 2012 01:25:47 GMT

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