Table Tag
The <table>
tag allows you to display a table on your webpage.
Example
<table>
<thead>
<tr>
<th>Full Name</th>
<th>Job Role</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sherlock Holmes</td>
<td>Detective</td>
<td>London</td>
</tr>
<tr>
<td>Harry Potter</td>
<td>Wizard</td>
<td>Godric's Hollow</td>
</tr>
<tr>
<td>Winnie the Pooh</td>
<td>Honey Taster</td>
<td>Five Hundred Acre Wood</td>
</tr>
</tbody>
</table>
This code block would produce the following output:
Full Name | Job Role | Location |
---|---|---|
Sherlock Holmes | Detective | London |
Harry Potter | Wizard | Godric’s Hollow |
Winnie the Pooh | Honey Taster | Five Hundred Acre Wood |