Answer the question
In order to leave comments, you need to log in
Why is the order of table thead, tfoot, tbody tags in the semantic layout of html?
I am reading the book "Web Mastering 2013" by Klimenko R. A. It says that the order is this.
ps: "Note that the table footer is defined above the table content itself, i.e. thead tag comes first, then tfoot and only then tbody."
Answer the question
In order to leave comments, you need to log in
Within a table, TFOOT must come before TBODY so that the user's browser can display TFOOT before getting all the other rows from TBODY, which can be very many.
<table>
<thead>
<tr>...</tr>
</thead>
<tfoot>
<tr>...</tr>
</tfoot>
<tbody>
<tr>...</tr>
<!-- Ещё тысячи строк... -->
<tr>...</tr>
</tbody>
</table>
Semantics is irrelevant here. First, the top and bottom headers of the table are loaded, and then, between them, its body.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question