Tables helps us to arrange our data in rows and columns. Tables are a simple and easy way to explain and understand a data.
As you can see in the output every cell has its own border. To make this table more beautiful we collapse this borders.
colspan is an attribute of <td> tag. It is used to merge two or more columns.
From the above example you can see that colspan attribute is specified in last row and the value of colspan is defined as 3 which means that three columns must combine in that row. You can try with different numbers.
rowspan is an attribute of <td> tag. It is used to merge two or more rows.
|Full form of HTML?||Hyper Text Markup Language.|
|Hyper Text Makeup Language.|
As you can see that using rowspan we merged two rows (2 and 3). Start making your own table and play with this numbers to get more cleared about rowspan and colspan attributes.