What is the use of colspan and rowspan | Sololearn: Learn to code for FREE!

+1

What is the use of colspan and rowspan

3/14/2017 8:04:04 AM

Sharad Kumar Mishra

4 Answers

New Answer

+22

rowspan="n" for merging n number of rows colspan="n" for merging n number of columns

+2

like<table> <tr> <td rowspan=2>1</TD> <TD>2</td> </tr> </table> rowspan means merge two row at time using

+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.

+1

split the cell at time using rowspan and colspan