Column and Row Spanning
The colspan attribute makes a cell span multiple columns. The rowspan attribute makes a cell span multiple rows. Both accept an integer value indicating how many columns or rows to occupy.
Planning Spans
When a cell spans multiple rows or columns, the cells it "covers" must be removed from the affected rows. Forgetting this results in broken table layouts. It helps to sketch the table on paper before coding — mark which cells are merged and count the remaining cells per row carefully.
colspan="2"— Cell spans 2 columnsrowspan="3"— Cell spans 3 rows