- 1

What is colspan in table and what's its use ? , is use for making space between the column lines and row lines ?

1st Jun 2020, 8:25 AM
VISHAL JAYMANGAL DEDAVAT
3 Answers
0
colspan is use for merging two or more columns.
1st Jun 2020, 9:22 AM
Omkar Kamat
Omkar Kamat - avatar
+ 1
To make a cell span more than one column, use the colspan attribute. <table style="width:100%"> <tr> <th>Name</th> <th colspan="2">Telephone</th> </tr> <tr> <td>Jon Smitdh</td> <td>55577854</td> <td>55577855</td> </tr> </table>
1st Jun 2020, 8:28 AM
JaScript
JaScript - avatar