Tables (table, tr, td, th)
An HTML element that creates one horizontal row inside a table. Every <td> and <th> cell must sit inside a <tr>.
What it does: The two <th> cells label the Product and Price columns. They are bold and centred by default without any CSS. The two <td> cells are inside a <tr>, which is inside <table>. This correct nesting is required for valid HTML tables. <tr> (table row) creates a horizontal row. Each cell - <td> or <th> - sits inside a <tr>. HTML tag names must be lowercase. <TABLE> is non-standard - use <table>. A single row can mix <th> header cells and <td> data cells - for example a row label in <th> followed by data in <td>. All four table elements work together: <table> is the container, <tr> creates rows, <th> labels, and <td> holds data.
Common mistakes: HTML tag names must be lowercase. <TABLE> should be written as <table>. HTML tag names must be lowercase. <TD> and </TD> should be written as <td> and </td>.
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
<tr>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 →