Ü To span rows and columns, we will use the ROWSSPAN and the COLSPAN attributes respectively. These attributes are used in the <TH> and in the <TD> tags. To understand ROWSPAN consider the following input.
In the above input, the Planets and the Mercury are in the same row. But the other 2 rows below Planets were deleted as the value of the ROWSPAN was given 3. Actually, ROWSPAN=3, combines the 3 three rows of the first column.
To understand COLSPAN consider the following input.
In the above input, the table actually having 2 columns, but in the first row by giving COLSPAN=2, the columns were combined to 1.In the above input, we also used an attribute ALIGN. We will discuss about it later.