CBSE Class 10 Computer Applications Question 31 of 81

Images, Links and Tables — Question 3

Back to all questions
3
Question

Question 3

Differentiate between the Rowspan and Colspan attributes of a table.

Answer

Differences between Rowspan and Colspan attributes of a table are:

S.
No.
RowspanColspan
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.