Advanced Home Page
When your table is displayed, it
will show two rows for the cell you have added ROWSPAN to.
Here is an example of ROWSPAN applied to basketball
information.
Spanning
Multiple Rows
As you using tables more
often, you'll occasionally find situations where you wish your information
could span multiple rows. That is when the ROWSPAN tag comes into use.
ROWSPAN is a special keyword
that you add to the <TD> tag for a specific cell. To have cell span
two columns instead of the default 1, instead of using <TD> Your cells
text here </TD>,
try this:
TD ROWSPAN=2> Your Extended text here
< TABLE
BORDER=1>
<TR>
<TH>Player Name</TH>
< TH>Team </TH>
<TH> Win / Loss </TH>
; </TR>
<TR>
<TD>AAA </TD>
<TD> <ROWSPAN=2>Sabah Net
</TD>
<TD>16-2 </TD>
</TR>
<TR>
<TD> BBB </TD>
<TD>19-2 </TD>
</TR>
<TR>
<TD>DDD </TD>
<TD> XYZ Co. </TD>
<TD>10-2 </TD>
</TR>
</TABLE>
|
|
Result:
Player
Name
|
Team
|
Win
/ Loss
|
AAA
|
Sabah Net
|
16-2
|
BBB
|
19-2
|
DDD
|
XYZ Co
|
10-2
|
|
|