
session 10-COMPLEX TABLES
This is a more complex table. The width is set to 500 pixels, and the text is aligned using the align and valign sub-sections. Also, there is one use of the colspan sub-section in this HTML coding<table width="500">
<tr>
<td align="left" valign="top">This is cell 1-1<br><br><br></td>
<td align="center" valign="middle">This is cell 1-2</td>
<td align="right" valign="bottom">This is cell 1-3</td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle">This is cell 2-1 with a colspan of 2</td>
<td align="center"><br><br><br>This is cell 2-3</td>
</tr>
</table>
This is cell 1-1
This is cell 1-2
This is cell 1-3
This is cell 2-1 with a colspan of 2
This is cell 2-3
#3 - This is the last example. This table is borderless and colored.
<table width="500" border="0">
<tr>
<td bgcolor="#000099">This is cell 1</td>
<td>This is cell 2</td>
<td bgcolor="#ffffff">This is cell 3</td>
</tr>
</table>
This is cell 1
This is cell 2
This is cell 3
|
|
|
|
|
|
|
|
|