【发布时间】:2015-02-05 00:49:25
【问题描述】:
将微数据添加到页面后,我通常会去:https://developers.google.com/webmasters/structured-data/testing-tool/ 进行测试并确保没有遗漏任何内容。
我收到以下错误:
“ContactPoint 必须附加到具有声明类型的父级”
我不确定我错过了什么...?
示例 HTML
<div itemscope itemtype="http://schema.org/Person">
<p>
<span itemprop="description">Webmaster</span>:
<span itemprop="name">Omar</span>
<br/><a itemprop="url" href="https://plus.google.com/+Omar/">Profile</a>
</p>
<p itemscope itemtype="http://schema.org/ContactPoint">
To contact me please email me at
<a itemprop="email" href="mailto:omar@somewhere.com">omar@somewhere.com</a>
<meta itemprop="contactType" content="Webmaster"/>
<meta itemprop="sameAs" content="https://plus.google.com/+OmarJuvera"/>
<meta itemprop="availableLanguage" content="English"/>
<meta itemprop="availableLanguage" content="Spanish"/>
<meta itemprop="availableLanguage" content="Japanese"/>
</p>
</div>
【问题讨论】:
标签: html seo schema.org microdata