|
We saw
in the last tables examples how the structure is determined by Table Row
(TR) and Table Data (TD) tags. The table begins with a <table> tag,
and ends with a </table> tag. Each row begins with a <tr> tag
and ends with a </tr> tag. The rows are made up of table cells, made
with <td> tags, which start with <td> tags, and end with
</td> tags. Height and Width can be given in the <td> tags i.e
<td width="50"> which defines the width in pixels, or <td
width="30%">, which defines the width as a percentage of the total. N.B
It is usual to give widths as a % of the screen, so that if the user has a
small screen their browser will 'shrink' the table to fit the screen, and
they will not have to scroll right. But as you will see on my home page,
it is also common when using tables as the content of the td, to give
absolute sizes in pixels, to guarantee the proportionality of your web
design. In this example, we construct the table using one tr, and three
td. Coming examples will have more than one tr. |
Copyright 2002 Markus Heinrich Rehbach All
Rights Reserved