The <thead>
tag is used to group the header content in an HTML table.
The thead
element should be used in conjunction with the tbody
and tfoot
elements.
More : thead
You use <thead>
to encapsulate an entire row (or rows) to designate them as the Table Header.
According to the spec,
"This division enables user agents to
support scrolling of table bodies
independently of the table head and
foot. When long tables are printed,
the table head and foot information
may be repeated on each page that
contains table data."
<th>
, on the other hand, is used to style a specific cell as a header cell
rather than an ordinary data cell.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…