I've a problem with validation of the code provided by Google. Idea is (simplified):
<head itemscope itemtype="http://schema.org/WebSite">
<title itemprop="name">Example.com - Best Website in the World</title>
<meta name="description" content="Blah Blah Blah" itemprop="description">
<link rel="canonical" href="https://example.com/" itemprop="url">
</head>
Inspired by Google documentation (see markup example).
The main problem is that the code above isn't valid:
Attribute
itemprop
not allowed on elementmeta
at this point.
Attributeitemprop
not allowed on elementlink
at this point.
But if I remove itemprop
, Google Structure Tool no longer recognizes the url
and description
as properties.
Please tell me why is that, I mean why does Google provide non-valid code and how can I solve this?