Table sections (thead, tbody, caption)
The HTML element that groups the main data rows of a table. It sits inside <table> alongside <thead> and <caption>, wrapping the <tr> rows that contain <td> cells.
Understanding Table sections (thead, tbody, caption) in HTML & CSS
What it does: <caption> is a direct child of <table>, appearing before the section elements. It renders as a visible label above the table. <thead> is the section wrapper for header rows. <th> is an individual header cell inside a <tr> inside <thead>. HTML tag names must be lowercase. <TBODY> is non-standard - use <tbody>. <tbody> is optional - browsers add it implicitly if omitted. However, writing it explicitly improves readability and CSS targeting. <tbody> contains the main data rows, which use <td> cells. <th> cells typically live in <thead> rows. The correct nesting is <table> ? <tbody> ? <tr> ? <td>. Placing <td> directly inside <table> is invalid HTML.
Common mistakes: HTML tag names must be lowercase. <THEAD> should be written as <thead>. The <tbody> opening tag is missing its closing </tbody> tag before </table>. Each section element must be properly closed.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 21–30) and word search (Modules 21–41).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<tbody>Fill in the Blanks
Spot the Error
Student with a class code? Join your class →