I am adding Schema.org Microdata to one of the website homepage. This website has a logo which is surrounded with <a>
anchor tag. This anchor tag already uses itemprop="url"
like this:
<a href="https://mywebsite.com" itemprop="url" title="'My Website'" rel="home" id="logo"><img src="/logo.png" alt="My Website" itemprop="logo" /></a>
Should I add <meta>
tag with itemprop="url"
or having <a>
with itemprop="url"
is enough?
Which one is correct?
One:
<header id="header" role="banner"> <div itemprop="publisher" > <a href="https://mywebsite.com" itemprop="url" title="'My Website'" rel="home" id="logo"><img src="/logo.png" alt="My Website" itemprop="logo" /></a> <meta content="My Website" /> <meta itemprop="telephone" content="+61 123 123 123" /> <div itemprop="address" itemtype="http://schema.org/PostalAddress"> <meta itemprop="streetAddress" content="Level 1" /> <meta itemprop="addressLocality" content="SomeCity" /> <meta itemprop="addressCountry" content="AU" /> <meta itemprop="postalCode" content="4000" /> </div> </div> </header>
Two:
<header id="header" role="banner"> <div itemprop="publisher" > <a href="https://mywebsite.com" itemprop="url" title="'My Website'" rel="home" id="logo"><img src="/logo.png" alt="My Website" itemprop="logo" /></a> <meta itemprop="url" content="https://mywebsite.com"> <meta content="My Website" /> <meta itemprop="telephone" content="+61 123 123 123" /> <div itemprop="address" itemtype="http://schema.org/PostalAddress"> <meta itemprop="streetAddress" content="Level 1" /> <meta itemprop="addressLocality" content="SomeCity" /> <meta itemprop="addressCountry" content="AU" /> <meta itemprop="postalCode" content="4000" /> </div> </div> </header>
Format Two has extra <meta itemprop="url" content="https://mywebsite.com">
.