Is it necessary to have in any table?

后端 未结 7 733
天涯浪人
天涯浪人 2021-01-14 16:10

is it necessary to have in any table? even if table has no heading?

table has 3 other tag

7条回答
  •  死守一世寂寞
    2021-01-14 16:24

    You want to use what describes your data best.

    will describe the whole table. th will create a single cell which is usually used to describe one column (but can also be used for row headings).

    thead, tfoot, and tbody. all can be used and are all optional provided that they are in that order, if used, and you have only one thead and one tfoot (but you can have multiple tbody. Many browsers (all?) will add them implicitly if you don't, but the spec says they're optional.

    th can appear inside any tr regardless of where the tr is.

提交回复
热议问题