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

What is the use of colspan and rowspan

14th Mar 2017, 8:04 AM
Sharad Kumar Mishra
Sharad Kumar Mishra - avatar
4 Answers
+ 22
rowspan="n" for merging n number of rows colspan="n" for merging n number of columns
14th Mar 2017, 9:45 AM
Mansi Dagla
Mansi Dagla - avatar
+ 2
like<table> <tr> <td rowspan=2>1</TD> <TD>2</td> </tr> </table> rowspan means merge two row at time using
14th Mar 2017, 1:16 PM
Bhumiben Solanki
+ 1
just think you are making a calculator then we can use rowspan and make it equal to a no. and this number is the no. of cell a row should span. and same goes for colspan.
14th Mar 2017, 9:01 AM
Mayank Sahai
Mayank Sahai - avatar
+ 1
split the cell at time using rowspan and colspan
14th Mar 2017, 9:02 AM
Bhumiben Solanki