Tables for data
Tables show data in rows and columns, like a timetable or a price list. <table> wraps everything, and each row is a <tr> (table row).
Inside a row, header cells use <th> and ordinary cells use <td> (table data). Header cells tell screen readers what each column means. A <caption> gives the whole table a title.
Use tables only for data. For page layout, CSS flexbox and grid do a much better job.
Example
<table>
<tr><th>Day</th><th>Class</th></tr>
<tr><td>Monday</td><td>Maths</td></tr>
<tr><td>Tuesday</td><td>Science</td></tr>
</table>
Every row needs the same number of cells, or the columns won't line up.
Your tasks
0 of 3 done- Add at least 2 data rows made of <td> cells
- Give every data row 2 cells, to match the headers
- Add a <caption> that describes the table
Tutor
The tutor guides you toward the answer instead of handing it over. It uses your own Claude usage.
Quick check
Which tag makes a header cell?
No problems found. Unclosed tags, missing semicolons and errors show up here in plain words.