What is the use of colspan tag in table | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the use of colspan tag in table

30th May 2017, 8:40 AM
Shaswat Singh
Shaswat Singh - avatar
3 Answers
+ 1
it defines the number of columns a cell should span
30th May 2017, 8:42 AM
SoakedInAllan
SoakedInAllan - avatar
+ 1
colspan used for merge cells
30th May 2017, 8:50 AM
Vijay Saini
Vijay Saini - avatar
+ 1
You can use rowspan="n" on a td element to make it span n rows, and Colspan="m" on a td element to make it span m columns.
31st May 2017, 2:00 PM
Soussi Mohamed
Soussi Mohamed - avatar