COLSPAN AND ROWSPAN IN HTML
- Harshit Sharma
- Nov 19, 2020
- 1 min read
HTML - Rowspan attribute and HTML - Colspan attribute: How to create layouts using tables? Rowspan and Colspan attributes. How to merge table cells?
HTML Rowspan attribute: spans a cell vertically. the value should be how many cells to span consider the current cell too.
<th rowspan=2>
OR
<td rowspan=2>
HTML Colspan attribute: spans a cell horizontally. the value should be how many cells to span consider the current cell.
<th colspan=2>
OR
<td colspan=2>
Comments