Correct usage of schema.org for logo?

11,625

This should work because it still uses the logo and URL itemprops within the itemscope of "Organisation" which is ultimately the markup it is looking for.

<div itemscope itemtype="http://schema.org/Organization">
    <a itemprop="url" href="http://www.example.com/">
        <img itemprop="logo" src="http://www.example.com/logo.png">
    </a>
</div>

I'd expect this to work if you ran it through Google's rich snippet testing tool to confirm.

The logo can also be as SVG.

Share:
11,625

Related videos on Youtube

Dustin
Author by

Dustin

Updated on September 18, 2022

Comments

  • Dustin
    Dustin almost 2 years

    Google gives this example to markup your logo:

    <div itemscope itemtype="http://schema.org/Organization">
      <a itemprop="url" href="http://www.example.com/">Home</a>
      <img itemprop="logo" src="http://www.example.com/logo.png" />
    </div>
    

    http://googlewebmastercentral.blogspot.ca/2013/05/using-schemaorg-markup-for-organization.html

    But that example has the img outside the anchor, I want to put it inside...so I'm wondering can I do it this way instead:

    <a itemscope itemtype="http://schema.org/Organization" href="http://www.example.com/">
      <img itemprop="logo" src="http://www.example.com/logo.png" />
    </a>
    

    Is this valid? Note: I took out the URL itemprop.

  • zigojacko
    zigojacko over 10 years
    Whilst it normally pays to follow the advice of Google, the Schema that Google provides are only examples of scenarios. It would be impossible to list every possible combination of Schema markup. As long as itemprops available within an itemscope can be found within, then the markup should still be valid.