Home/
Tutorials/
HTML/
add column headings to a table/
you are here
We're going to use the table heading tag (<th>) to add a column headings to a table like this:
Ship
Speed
Dragon Ship
fast
Ferry
slow
<table border="1"> <tr> <td>Ship</td> <td>Speed</td> </tr> <tr> <td>Dragon Ship</td> <td>fast</td> </tr> <tr> <td>Ferry</td> <td>slow</td> </tr> </table>
| Ship | Speed |
| Dragon Ship | fast |
| Ferry | slow |
<table border="1"> <tr> <th>Ship</th> <th>Speed</th> </tr> <tr> <td>Dragon Ship</td> <td>fast</td> </tr> <tr> <td>Ferry</td> <td>slow</td> </tr> </table>
| Ship | Speed |
|---|---|
| Dragon Ship | fast |
| Ferry | slow |
you might like to try these tutorials too: