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.
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 journey and assign it to your class.
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
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →