Search code examples
htmlhtml-tablemarkup

If a table has no thead, should it have a tbody?


If a table doesn't contain a thead, should the tbody still be included or not?


Solution

  • From the browser's point of view, there will always exist a tbody, even if you don't insert it. The tbody is optional, unless you have a thead or tfoot tag.