Table structure
HTML tables organize information into rows and columns.
Learn how websites are structured from the ground up using HTML. Build real pages while learning elements, attributes, links, images, forms, tables, semantic HTML and more.
Lesson 8 of 24
15 min learning time
HTML tables organize information into rows and columns.
Common table elements include table, tr, th and td.
<table border="1">
<tr>
<th>Name</th>
<th>Course</th>
</tr>
<tr>
<td>Brian</td>
<td>HTML</td>
</tr>
<tr>
<td>Mary</td>
<td>JavaScript</td>
</tr>
</table>
Practical Exercise
Create a table showing three students and the courses they are learning.
Quick Check
Which element represents a table row?