← BYTES
HTML·Starter·Ref: 2.1.16

What is the purpose of a `<table>` element's `<thead>`, `<tbody>`, and `<tfoot>` sub-elements?

Have a question about this video? Mention reference 2.1.16 when you contact us.

a.They control the table's background color in each section
b.They are purely decorative and have no functional purpose
c.They semantically group a table's header row(s), body rows, and footer row(s) respectively, aiding both styling and accessibility/screen-reader navigation of complex tables
d.They determine how many columns the table has
<thead>/<tbody>/<tfoot> let you explicitly mark which rows are header information, which are the main data body, and which are summary/footer rows -- useful for CSS targeting (e.g., sticky headers) and letting assistive technology announce a table's structure more clearly to users.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES2116#HTML