0

How colspan or rowspan work?

Will you please tell it briefly how actually colspan or rowspan work in HTML table. -Thanks in advance.

19th Sep 2017, 11:23 AM
Md. Amin Kaiser
Md. Amin Kaiser - avatar
2 Respuestas
+ 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
19th Sep 2017, 12:34 PM
Duncan
Duncan - avatar