thead, tfoot and tbody order in HTML5

后端 未结 3 1417
旧时难觅i
旧时难觅i 2021-01-05 00:04

I was reading in a forum about element that it must come after element. In contrast I saw some people use the order

3条回答
  •  無奈伤痛
    2021-01-05 00:53

    According to the W3 specs, tfoot has to come before tbody. (Links to specs here -> Why do internal TABLE sections have to go THEAD TFOOT TBODY to validate?)

    This was done to allow the header and footer of a table to load first, before loading in a variable amount of body data, which would otherwise possibly block the loading of the table footer.

提交回复
热议问题