From Google Developers I took this example for Microdata to include the site name in search results:
<head itemscope itemtype="http://schema.org/WebSite">
<title itemprop='name'>Your WebSite Name</title>
<link rel="canonical" href="https://example.com/" itemprop="url">
</head>
With the W3C Validator I got this error message:
Error: Attribute itemprop not allowed on element link at this point.
What would be the correct markup for this?