In this order: optionally a caption element, followed by zero or more colgroup elements, followed optionally by a thead element, followed by either zero or more tbody elements or one or more tr elements, followed optionally by a tfoot element, optionally intermixed with one or more script-supporting elements.
In this order: optionally a caption element, followed by zero or more colgroup elements, followed optionally by a thead element, followed by either zero or more tbody elements or one or more tr elements, followed optionally by a tfoot element, optionally intermixed with one or more script-supporting elements.
https://uhyohyo.net/javascript/2_9.html には
と書かれていますが、最新のHTMLの仕様では、thead,tbody,tfootの順でないといけません。
― HTML 5.1 2nd Edition - 4.9.1. The table element
― HTML Living Standard - 4.9.1 The table element