Beginners guide to HTML
Lesson 6 - Tables
Tables have a number of elements in rows and columns. Conventionally a table has the same number of elements in every row, but you can merge elements together for special layout.
Both <td> and <th> support the following additional parameters:
|<td rowspan=2>||Make this element continue for two rows of the table.|
|<th colspan=3>||Make this element continue for three columns of the table.|
(or left, center)
Align this element in the way shown.|
You can set align for the row in <tr>
(or middle or bottom)
Vertically align this element at the top. |
You can set valign for a row in the <tr>
Note that as a default elements are aligned left and in the middle, valign=top is very useful to make table look better.
Note tables can be nested, ie you can put a table inside a table element. But early versions of netscape can get messed up with nested tables. Which is a shame.
|Daddy||Married to Judith||42|
|Mummy||Married to Richard||41|
|Kelvin||Both children of Richard and Judith||17|
Updated 27th of March 2002