1

If i have a box under the header where I have Microdata for my social profiles and I have another same box in the footer, in this box can I repeat the markup:

<span itemscope itemtype="http://schema.org/Organization">   
 <link itemprop="url" href="http://www.your-company-site.com">
 <a itemprop="sameAs" href="http://www.facebook.com/your-company">FB</a>  
 <a itemprop="sameAs" href="http://www.twitter.com/YourCompany">Twitter</a>
</span>

or is it a mistake? Or must I add it only once?

unor
  • 92,415
  • 26
  • 211
  • 360
Borja
  • 3,359
  • 7
  • 33
  • 66

1 Answers1

1

It’s not forbidden, but it doesn’t make sense to do it, and it can lead to problems.

Consumers interested in your Microdata parse your HTML document and extract the Microdata items. If they extract two Organization items, the first assumption is that these two items represent different organizations (unless they have the same itemid value).

In your case, the two items have the same properties+values, and if two items have for example the same url value, it’s likely that they are about the same thing, but that’s something that the consumer would have to assess, which can lead to errors. And in cases where no property is used that typically has a "unique" value (like url or telephone), it’s not easy and sometimes even impossible to decide if they are the same or not (for example, two different organizations could have the same name).

So ideally only mark up one occurrence per page. If you mark up the occurrence in the header, but the footer contains additional content which you want to add, you could use the itemref attribute.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
  • But for you is better only one markup or repeat it but adding itemref attribute (that i don't have idea where i should add it and which is its value) thanks – Borja Feb 20 '16 at 09:50
  • @user3162975: You only use `itemref` if you need to add a property wich you don’t already have. So in your case (exact same items), you don’t have to use `itemref`. – unor Feb 20 '16 at 12:45
  • ok so in my case for the box in the footer i don't repeat the markup. right ? – Borja Feb 20 '16 at 12:50
  • 1
    @user3162975: Correct. – unor Feb 20 '16 at 12:52