Colspan | Sololearn: Learn to code for FREE!



hello, who can explain to me in an easy way the colspan, and why is it written in this example colspan=2, not 3, 4, 5 or ....n etc? And when i enter colspan=4 for example it has the same result as colspan=2

4/17/2018 9:43:16 PM


2 Answers

New Answer


i also dont understand the colspan but that answer helped me. :)


The colspan attribute is generally used to specify how many cells one column will take up in your table. For example, if you were to have a 5x4 table with the first element having a colspan of 5, the cell will span across the entire table, getting rid of the separator between the cells for that section. I would recommend checking out these websites as they both explain its usage very clearly -