It's also just become clear how difficult Small Hypearthquakes is to finish...
<table>
starts a table, <tr>
starts a row of a table and <td>
starts an individual cell. As with most other tags inserting a slash in the appropriate place closes them off again. So a basic 2 row, 3 column table would be generated by:<table>
<tr>
<td>Cell 1</td><td>Cell 2</td><td>Cell 3</td>
</tr>
<tr>
<td>Cell 4</td><td>Cell 5</td><td>Cell 6</td>
</tr>
</table>
which produces:Cell 1 | Cell 2 | Cell 3 |
Cell 4 | Cell 5 | Cell 6 |
<table>
tag can include attributes like border, cellpadding and so on, which produce various different effects; these are the same sort of things as color=red in a font tag. Also of note are the colspan and rowspan attributes which can be applied to the td tag -- eg <td colspan=2>
would make the cell it applied to double size. You can specify a bgcolor
, one of the mainstays of this game, and the width
attribute which says how much of the table each column should take up -- I think percentages are best from the point of view of cross-browser compatibility. And finally, this is the HTMLHelp.com entry on tables where they probably explain everything much better than I can.