hitmill.com
link to hitmill.com home page

 

 

HTML Table Tutorial Lesson 2j
The ROWSPAN Attribute of the TABLE Element


 

A free HTML Tutorial discusses the ROWSPAN attribute of the TABLE element used for making HTML tables and stretching a column vertically across two or more rows.


 

ROWSPAN

The ROWSPAN attribute of the TABLE element is used to stretch a column vertically across two or more rows of a table when coding HTML for Web pages. The value of this attribute indicates the number of rows the column will stretch across. If ROWSPAN="2" it will only stretch a column vertically across two rows.

 
     
   
   

 
The first row of the table has 3 columns coded as follows:
<TR>
<TD ROWSPAN="3" WIDTH="30" BGCOLOR="yellow"> </TD>
<TD WIDTH="*"> </TD>
<TD WIDTH="50"> </TD>
</TR>
Because the first column contains the ROWSPAN which fills column 1 in rows 1, 2 and 3, when you code row 2 and row 3, do not again code column 1 but only code column 2 and column 3 in row 2, then only code column 2 and column 3 in row 3.

 

 

 

 

 

 


 
Contact
 
Updated 11 April 2006
© hitmill.com
All Rights Reserved