what does colspan do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what does colspan do?

did not get its concept... plz explain

9th Jul 2016, 10:04 PM
sabih khan
sabih khan - avatar
9 Answers
+ 4
<table> <tr> <td colspan="2"(Number of column to be span)>ABC</td> </tr> </table> Enjoy!!!!
11th Jul 2016, 10:34 AM
Ashish Lakhara
Ashish Lakhara - avatar
+ 3
colspan attribute merge two coloum into one
10th Jul 2016, 2:28 AM
Krishna Agarwal
Krishna Agarwal - avatar
+ 1
to merge two or more columns ^_^
31st Aug 2016, 10:07 AM
wahyu eka
wahyu eka - avatar
+ 1
to merge two or more columns ^_^
31st Aug 2016, 10:07 AM
wahyu eka
wahyu eka - avatar
0
It will merge multiple columns into one. <td colspan=2>XYZ</td>
10th Jul 2016, 4:20 AM
chintan patel
0
oh okay, thank you so much guys 😊
10th Jul 2016, 6:15 AM
sabih khan
sabih khan - avatar
0
ashish lakhara nothing happened with that code_what was the purpose?
11th Jul 2016, 4:29 PM
sabih khan
sabih khan - avatar
0
the colspan can make one cell for two column
11th Jul 2016, 5:04 PM
Kyll
Kyll - avatar
- 1
it extends the <tr> within it to more than one space , specified to the value of the colspan for ex : if colspan=4, this means that the cell will be 4size space or 4 times the normal size of the xekk
12th Jul 2016, 6:29 AM
Nader
Nader - avatar