Lesson 7 of 15
Tables
HTML Tables
Tables organize data in rows and columns. The structure:
<table>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>Alice</td>
<td>95</td>
</tr>
<tr>
<td>Bob</td>
<td>87</td>
</tr>
</tbody>
</table>
Tags used:
<table>— the container<thead>— header section<tbody>— body section<tr>— table row<th>— header cell (bold by default)<td>— data cell
Your Task
Create a table with:
- A
<thead>with at least 3 column headers (<th>) - A
<tbody>with at least 2 rows of data
HTML preview loading...
Loading...
Click "Run" to execute your code.