Why would we want to “section off” tables with the `<tbody>` tag?


#1

Question

Why would we want to “section off” tables with the <tbody> tag?

Answer

The <tbody> tag together with the <thead> and <tfoot>tags (which you will learn about in the next two exercise) give our tables semantic meaning. These tags stand to improve the user experience in a number of ways:

  1. enhanced screen reading experience for the visually impaired
  2. <thead> and <tfoot> information can be shown on each page for printing
  3. with a bit of CSS, <thead> and <tfoot> information can be seen while scrolling through long tables.

FAQ: Learn HTML Tables - Tables - Table Body