2 years 2 months ago

How to combine or merge cells in an HTML table

You can combine two or more table cells together by using the colspan attribute in a HTML table data tag . For example, a table with three rows and three columns. If we want to combine the first two cells into one cell for second row, we should use the colspan="2" attribute for the first td tag within second tr tag.