HTM58


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:

     Table cells can span across more than one column or row. The attributes COLSPAN ("how many across") and ROWSPAN ("how many down") indicate how many columns or rows a cell should take up With Nesting tables simply means making a table inside another table.


..Back to the top..



OUTPUT:


A Web page with nested table
Cell 2 is an entire tables
Cell 1
T21T22T23
Cell 3 Cell 4
Cell 5Cell 6Cell 7Cell 8
Cell 9Cell 10Cell 11Cell 12


..Back to the top..



SOURCE CODE:



<HTML>
<HEAD><TITLE>A Web page with nested table</TITLE></HEAD>
<BODY>
<FONT COLOR = red><CENTER>Cell 2 is an entire tables</CENTER></FONT>
<TABLE ALIGN = center BORDER = 4>
<TR>
<TD>Cell 1</TD>
<TD>
TABLE ROWS = 2 COLS = 3> <TR>
<TD>T21</TD><TD>T22</TD><TD>T23</TD>
</TR>
</TABLE>
</TD>
<TD>Cell 3</TD>
<TD>Cell 4</TD>
</TR>
<TR>
<TD>Cell 5</TD><TD>Cell 6</TD><TD>Cell 7</TD><TD>Cell 8</TD>
</TR>
<TR>
<TD>Cell 9</TD><TD>Cell 10</TD><TD>Cell 11</TD><TD>Cell 12</TD>
</TR>
</TABLE>
</BODY>
</HTML>


..Back to the top..