将基于内容的电子邮件创建到lead表单中,并从https://www.google.com/webmasters/markup-tester/中获取错误,指出当微数据在表中时,我的itemtype无效:
leadForm(leadForm类型不是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的测试工具应该在第一个片段中报告同样的错误;它似乎是一个小故障,而不是。

07-24 09:55