HTML and CSS Reference
You've seen four elements used to create a
single table: <table>, <tr>, <th>, and <td>. Let's
take a closer look at each one to see exactly
what role it plays in the table.
The <th> ele ment contains one ce ll in the heading of
your table. I t must be inside a tab le row.
T he <ta ble> tag starts the wh ole thin g
o ff. Whe n you w ant a t able, st art her e.
The < /tr> ta g ends
a row of the table.
<th> Date </th>
Walla Walla, WA
Magic City, ID
Last Chance, CO
Each <tr> element
spec ifies a t able ro w.
So, all the t able da ta
that goes in a row is
nest ed insid e the < tr>
<td> August 9th </td>
The < td> element contains one data cell in your
table. It must be inside a t able row.