How colspan or rowspan work? | Sololearn: Learn to code for FREE!

0

How colspan or rowspan work?

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

9/19/2017 11:23:53 AM

Md. Amin Kaiser

2 Answers

New Answer

+2

https://code.sololearn.com/Wmqr6CP239wH/?ref=app

+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