itemprop="creator"
must be on the same element as theitemscope
.itemprop="name"
should not be specified ona
. If you have it ona
, the URL (inhref
) would be the name. As a solution, you could add aspan
(as child or as parent ofa
).- The property name is
url
, notURL
. - Your closing
a
tag has to be</a>
, not<a/>
. - The
creator
property links to a Person or Organization, not an Article. So either you meant that, or you should use a different property. Maybe you meanabout
?
So this would give you:
<div itemscope itemtype="http://schema.org/WebPage">
<div itemprop="creator" itemscope itemtype="http://schema.org/Person">
<a itemprop="url"href="…"><span itemprop="name">…</span></a>
</div>
<!-- and/or -->
<div itemprop="about" itemscope itemtype="http://schema.org/Article">
<a itemprop="url" href="…"><span itemprop="name">…</span></a>
</div>
</div>
Dose
itemprop="name"
belong toitemtype="http://schema.org/Article"
?
Yes, always to its nearest parent itemscope
.
Can I use two or more
itemprop
in one element?
No, you can’t add several itemprop
attributes on the same element. But you can have several properties in one itemprop
attribute.
However, make sure that all the properties expect the same value. This is not the case with Schema.org’s name
(expects Text) and url
(expects URL). If specified on a
, the value will be the value of the href
attribute, not the value of the a
element.