WeCodeAcademy

HTML Tables

Tables show data in rows and columns. <table> holds rows (<tr>), and each row holds header cells (<th>) or data cells (<td>).

Examplehtml
Open in editor »

Use colspan to make a cell stretch across columns. Tables are for data, not for page layout.

Quick check

Which element is a table row?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.