HTML Intro – Tables

Tables in HTML allow you to display data in your HTML page in a spreadsheet format.

table.html

<table>

<caption>Students List</caption>

<tr>
<th>Name</th>
<th>Age</th>
<th>Gender</th>
<th>Shirt Size</th>
</tr>

<tr>
<td>Bob</td>
<td>12</td>
<td>Boy</td>
<td>Medium</td>
</tr>

<tr>
<td>Fred</td>
<td></td>
<td>Boy</td>
<td>Large</td>
</tr>

<tr><td>Sue</td><td>10</td><td>Girl</td><td>Small</td></tr>

</table>

Be the first to comment

Leave a Reply