Page 78 - modular_v2.0_HTML&_CSS_Fb
P. 78
<TH COLSPAN="2">Marks</TH>
</TR>
<TR>
<TH>Maths</TH>
<TH>Science</TH>
</TR>
<tr>
<TD>1</TD>
<TD>Aadya</TD>
<TD>90</TD>
<TD>85</TD>
</TR>
<tr>
<TD>2</TD>
<TD>Rohan</TD>
<TD>88</TD>
<TD>82</TD>
</TR>
</TABLE>
Table with COLSPAN and ROWSPAN
</BODY>
</HTML>
ATTRIBUTES OF THE <TD> TAG
The <TD> tag stands for Table Data. It is used to fill the data in the table cells. Following are the
attributes used to present the cell or table data in more effective manner:
ROWSPAN: The ROWSPAN attribute applies when a cell is extended for more than one
row, that is, the cell spans for 2 or more rows instead of 1 as shown in below table.
Here, the cell “Sports” is taking a span of 3 rows and “Martial Arts” is taking a span of 2 rows.
Example for using ROWSPAN attribute is:
<TD ROWSPAN="3">
Category Types
Badminton
Sports Football
Basketball
Judo
Martial Arts
Karate
76
Touchpad MODULAR (Ver. 2.0)

