是否需要使用thead,tbody和tfoot标签? [英] Is it required to use thead, tbody and tfoot tags?

查看:72
本文介绍了是否需要使用thead,tbody和tfoot标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次使用table标签时,我是否应该真正使用theadtbodytfoot标签?标准是否要求?

Should I really use thead, tbody and tfoot tags every time that I use a table tag? Is it required by the standard or not?

推荐答案

不需要这些标签.如果表用于表示数据(表应用于此数据),则认为使用它们是一种很好的形式.如果使用表对内容进行布局,则通常将其省略.

Those tags are not required. It is considered good form to use them if the table is used to represent data, which is what a table should be used for. If a table is used for laying out content they are typically omitted.

W3C

这篇关于是否需要使用thead,tbody和tfoot标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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