Schema.org 'leadForm' 的验证错误(在 HTML+Microdata table 内)
Schema.org validation error (within HTML+Microdata table) for 'leadForm'
根据潜在客户表单中的内容创建电子邮件并收到来自 https://www.google.com/webmasters/markup-tester/ 的错误,指出当微数据在表中时我的项目类型无效:
leadForm (The type leadForm is not a type known to Google.)
下面的第一个代码块没有显示任何错误,而第二个代码块获得了无效的项目类型。为什么?
有效示例
<section itemscope itemtype="http://schema.org/leadForm">
<p>First Name:<span itemprop="firstName">[first_name]</span></p>
<p>Last Name:<span itemprop="lastName">[last_name]</span></p>
<p>Phone:<span itemprop="phone">[phone]</span></p>
</section>
无效的项目类型
<section itemscope itemtype="http://schema.org/leadForm">
<table width="500" border="0" cellspacing="3" cellpadding="2">
<tbody>
<tr>
<td width="230"><strong>First Name:</strong></td>
<td width="253"><span itemprop="firstName">[first_name]</span></td>
</tr>
<tr>
<td><strong>Last Name:</strong></td>
<td><span itemprop="lastName">[last_name]</span></td>
</tr>
<tr>
<td><strong>Phone:</strong></td>
<td><span itemprop="phone">[phone]</span></td>
</tr>
<tr>
<td><strong>Email:</strong></td>
<td><span itemprop="email">[email]</span></td>
</tr>
<tr>
<td><strong>Language Preference:</strong></td>
<td><span itemprop="lang">[lang]</span></td>
</tr>
<tr>
<td><strong>Best Time to Contact</strong></td>
<td><span itemprop="contactPref">[contactPref]</span></td>
</tr>
<tr>
<td><strong>Comments/Special Instructions:</strong></td>
<td><span itemprop="comments">[comments]</span></td>
</tr>
</tbody>
</table>
</section>
http://schema.org/leadForm
不是有效类型。因为它以小写字母开头(leadForm
而不是 LeadForm
),所以无论如何它都是 属性,但是这个 doesn’t exist.
我认为 Google 的测试工具应该为第一个片段报告相同的错误;好像是个小故障,其实没有。
根据潜在客户表单中的内容创建电子邮件并收到来自 https://www.google.com/webmasters/markup-tester/ 的错误,指出当微数据在表中时我的项目类型无效:
leadForm (The type leadForm is not a type known to Google.)
下面的第一个代码块没有显示任何错误,而第二个代码块获得了无效的项目类型。为什么?
有效示例
<section itemscope itemtype="http://schema.org/leadForm">
<p>First Name:<span itemprop="firstName">[first_name]</span></p>
<p>Last Name:<span itemprop="lastName">[last_name]</span></p>
<p>Phone:<span itemprop="phone">[phone]</span></p>
</section>
无效的项目类型
<section itemscope itemtype="http://schema.org/leadForm">
<table width="500" border="0" cellspacing="3" cellpadding="2">
<tbody>
<tr>
<td width="230"><strong>First Name:</strong></td>
<td width="253"><span itemprop="firstName">[first_name]</span></td>
</tr>
<tr>
<td><strong>Last Name:</strong></td>
<td><span itemprop="lastName">[last_name]</span></td>
</tr>
<tr>
<td><strong>Phone:</strong></td>
<td><span itemprop="phone">[phone]</span></td>
</tr>
<tr>
<td><strong>Email:</strong></td>
<td><span itemprop="email">[email]</span></td>
</tr>
<tr>
<td><strong>Language Preference:</strong></td>
<td><span itemprop="lang">[lang]</span></td>
</tr>
<tr>
<td><strong>Best Time to Contact</strong></td>
<td><span itemprop="contactPref">[contactPref]</span></td>
</tr>
<tr>
<td><strong>Comments/Special Instructions:</strong></td>
<td><span itemprop="comments">[comments]</span></td>
</tr>
</tbody>
</table>
</section>
http://schema.org/leadForm
不是有效类型。因为它以小写字母开头(leadForm
而不是 LeadForm
),所以无论如何它都是 属性,但是这个 doesn’t exist.
我认为 Google 的测试工具应该为第一个片段报告相同的错误;好像是个小故障,其实没有。