我有Schema.org的代码;
<main vocab="http://schema.org">
<article typeof="NewsArticle">
<h2 property="headline">Wie instaliert Virtual Box in Windows 10</h2>
<meta property="image" src="Bilder/me.png" >
<meta property="name" content="Virtual Box" />
<meta property="mainEntityOfPage" content="http://google.de" />
<meta property="datePublished" content="2019-03-07" />
<meta property="dateModified" content="2019-03-17" />
<span property="publisher" typeof="Organization">
<meta property="name" content="http://htmlkurss.xyz" />
<span property="logo" typeof="ImageObject">
<meta property="contentUrl url" src="/index.php/Bilder/Virtualbox.png" title="VirtualBox"/>
</span>
</span>
<div property="text">Virtual Box ist eine Virtualisierungssoftware, die viele Betriebessysteme emulieren kann. Sie funktioniert mit Linux , Mac und Windows. Sie hat auch veschiedenene Sprachen für ihre Oberfläche, wie beispielsweise Deutsch, Englisch ,...
</div>
<span property="author" typeof="Person" >
<meta property="name" content="http://htmlkurss.xyz" />
</span>
</article>使用这段代码,我对Google结构化数据测试工具没有问题,但是在使用valdator.w3.org进行测试时,它会给出以下错误:

当我尝试使用valdator.w3.org的推荐时,我发现了Google的SDTT中的错误。
发布于 2019-03-24 15:35:53
meta元素不能有src属性,如果它出现在body中,它必须有一个content属性。
如果该值是一个URL,则必须使用link元素而不是meta元素:
<link property="" href="" />https://webmasters.stackexchange.com/questions/121786
复制相似问题