Performance: Table accessibility basics
LOW IMPACT
This affects page load speed slightly but mainly impacts user experience and visual stability for screen readers and keyboard users.
<table> <thead> <tr><th scope="col">Header 1</th><th scope="col">Header 2</th></tr> </thead> <tbody> <tr><td>Data 1</td><td>Data 2</td></tr> </tbody> </table>
<table> <tr><td>Header 1</td><td>Header 2</td></tr> <tr><td>Data 1</td><td>Data 2</td></tr> </table>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using <td> for headers without scope | Minimal | 0 | 0 | [X] Bad |
| Using <th> with scope and <thead>/<tbody> | Minimal | 0 | 0 | [OK] Good |