如果有多个tbody标签使用,html表是否有效? [英] Are html tables valid if there are multiple tbody tag used?
本文介绍了如果有多个tbody标签使用,html表是否有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果HTML < table>
中有多个< tbody>
标记,
< table>
< tbody>
< / tbody
< tbody>
< / tbody
< / table> /www.w3.org/TR/xhtml1/dtds.html\"> DTD 表示允许。 <!ELEMENT table
(caption?,(col * | colgroup *),thead ?, tfoot ?,(tbody + | tr +))
DTD也有一个注释,说明原因:
在表
行之间需要
规则时使用多个tbody节。
If there are multiple <tbody>
tags in an HTML <table>
, is this valid?
<table>
<tbody>
</tbody
<tbody>
</tbody
</table>
解决方案 Yes, the DTD shows that it is allowed.
<!ELEMENT table
(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>
The DTD also has a comment which explains why:
Use multiple tbody sections when rules
are needed between groups of table
rows.
这篇关于如果有多个tbody标签使用,html表是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文