验证:“表主体中的第一个开始标签". [英] Validation: "th start tag in table body."

查看:74
本文介绍了验证:“表主体中的第一个开始标签".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<table>
<thead>
 <th>Table Heading</th>
</thead>
<tbody>
 <tr>.....
</tbody>
</table>

当我尝试验证这部分代码时,验证器将返回以下错误:

When I try to validate this part of code, the validator returns this error:

 th start tag in table body.

该表模板是从getbootstrap.com复制而来的,因此我认为它是有效的.这是什么问题验证器为何返回此错误,我该如何解决?

The table template was copied from getbootstrap.com so I should assume it's valid. What's the problem here? Why is the validator returning this error, and how can I solve it?

推荐答案

th 是表头单元格-它必须位于 tr 中:

th is a table header cell - it needs to be within a tr:

<table>
<thead>
 <tr>
  <th>Table Heading</th> 
 </tr>
</thead>
<tbody>
 <tr>.....
</tbody>
</table>

这篇关于验证:“表主体中的第一个开始标签".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆