Which attribute is used with td tag to merge two cells horizontally?
Answers
Answered by
10
We use TD tag to create table cells. TD stands for table data.
When you need to merge two cells horizontally you can span current cell 2 columns. So we can use colspan=2 attribute for this purpose.
Similarly, rowspan=2 will merge two cells vertically in the same column or it will merge two cells in two rows.
When you need to merge two cells horizontally you can span current cell 2 columns. So we can use colspan=2 attribute for this purpose.
Similarly, rowspan=2 will merge two cells vertically in the same column or it will merge two cells in two rows.
Similar questions