Computer Applications
Differentiate between the Rowspan and Colspan attributes of a table.
HTML Advanced Features
28 Likes
Answer
Differences between Rowspan and Colspan attributes of a table are:
S. No. | Rowspan | Colspan |
---|---|---|
1. | ROWSPAN is used to combine the cells vertically. It merges the number of cells vertically and displays them as a single cell. | COLSPAN is used to combine the cells horizontally. It specifies the number of columns that the cells span across and shows them as a single cell. |
2. | E.g. <TD Rowspan= "3"> where 3 is the number of rows that the cells span across. | E.g. <TD Colspan= "4"> where 4 is the number of columns that the cells span across. |
Answered By
11 Likes