Home/
Tutorials/
HTML/
tables/
add a heading to a table/
you are here
We're going to use the <caption> tag to add a heading to a table like this:
Ship
Speed
Dragon Ship
slow
Ferry
slow
<table border="1"> <tr> <td><b>Ship</b></td> <td><b>Speed</b></td> </tr> <tr> <td>Dragon Ship</td> <td>slow</td> </tr> <tr> <td>Ferry</td> <td>slow</td> </tr> </table>
| Ship | Speed |
| Dragon Ship | slow |
| Ferry | slow |
<table border="1">
<caption>Our Ships</caption>
<tr>
<td><b>Ship</b></td>
<td><b>Speed</b></td>
</tr>
<tr>
<td>Dragon Ship</td>
<td>slow</td>
</tr>
<tr>
<td>Ferry</td>
<td>slow</td>
</tr>
</table>
| Ship | Speed |
| Dragon Ship | slow |
| Ferry | slow |
you might like to try these tutorials too: