This is an example of a simple table with border="3", cellspacing="10" and cellpadding="3". The td tags have color, width and alignment.
Table 1
Row 1/Col 1
Row 1/Col 2
Row 1/Col 3
Row 2/Col 1
Row 2/Col 2
Row 2/Col 3
Row 3/Col 1
Row 3/Col 2
Row 3/Col 3
Notice in the code how I put the size of the graphic in the img tag AND the td tag. One graphic is a linked graphic. Can you tell which one?
I left several of the table cells the same as the one above so you can see what happens to cells when you put different size items in them.
|
Row 1/Col 2 | This
is a link in a table cell. It will return to the Tables Homework page. |
| Row 2/Col 1 | Row 2/Col 2 | Row 2/Col 3 |
| Row 3/Col 1 | Row 3/Col 2 |
|
|
Row 1/Col 2 |
This is a link in a table cell but not this line. Click here for an example of thumbnails in a table. |
| Row 2/Col 1 | Row 2/Col 2 | Row 2/Col 3 |
| Row 3/Col 1 |
|
|
Row 1/Col 2 | This
is a link in a table cell but not this line. Click here for an example of thumbnails in a table. |
| Row 2/Col 1 | Row 2/Col 2 | Row 2/Col 3 |
| Row 3/Col 1 |
|
| This cell spans 3 columns. This really comes in handy if you want to create a main head or you have one graphic in one row but multiple columns to go above or below the graphic (or vice versa). | >||
|
How did I get that 2 row space to the left without breaks in it? I used rowspan="2" between this td and the first td with the grapes image. | |
| Row 3/Col 1 | The reason why the graphic is off to the right is because it is the FOURTH column. The top column has a colspan"3". All other rows only have 3 columns. Therefore, the graphic to the right has nothing above it. |
|