0
How colspan or rowspan work?
Will you please tell it briefly how actually colspan or rowspan work in HTML table. -Thanks in advance.
2 Respostas
+ 1
Have you ever merged cells in Excel or a Word table? If so, it's the same concept in HTML.
Eg. lets say you have a table with two rows and two colimns.
Now you use colspan to 'merge' the two columns in the first row:
<td colspan="2">
This leaves you with one column that 'spans' the two columns in row 2