HTML - Colspan & Rowspan
Overview
Estimated time: 15–20 minutes
Example
<table>
<tr><th>Item</th><th>Q1</th><th>Q2</th></tr>
<tr><th scope="row">Sales</th><td>10</td><td>12</td></tr>
<tr><td colspan="2">Subtotal</td><td>22</td></tr>
</table>
Common Pitfalls
- Overusing merges—can harm accessibility; keep tables simple when possible.