Complex Tables: headers and id Pairing
Handle spanned and multi-level header tables.
When scope Is Not Enough
Some tables span cells or stack multiple header levels. Simple scope cannot describe a cell governed by two or three headers at once.
Spanned Headers Break Scope
A header that uses colspan to cover several columns confuses the simple model. The browser can no longer guess which cells it owns.
<th colspan="2" scope="colgroup">Q1</th>All lessons in this course
- th, scope, and the caption Element
- Row and Column Headers Done Right
- Complex Tables: headers and id Pairing
- Layout Tables Are a Trap