Re: Two questions about itemprop

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 UTC