
| The attribute <COLSPAN> is used within the <TD> or <TH> tag to span two or more columns.
By typing this:
<TABLE BORDER=1>
<TR>
<TH COLSPAN=2>
The First Four Numbers</TH>
</TR>
<TR>
<TD>1</TD>
<TD>2</TD>
</TR>
<TR>
<TD>3</TD>
<TD>4</TD>
</TR>
</TABLE>
|
Here's a second example.
By typing this:
<TABLE BORDER=1>
<TR>
<TD>1</TD>
<TD>2</TD>
</TR>
<TR>
<TH COLSPAN=2>
The First Four Numbers</TH>
</TR>
<TR>
<TD>3</TD>
<TD>4</TD>
</TR>
</TABLE>
|
||||||||||||