td-headers-attr
Installation
SKILL.md
Link table cells to headers using IDs
In complex tables with multi-level headers, explicit header-to-cell linking ensures screen readers accurately announce the relationship between data and its context.
Quick Reference
- Use the
headersattribute for complex tables wherescopeisn't enough - Ensure the
headersattribute references valididvalues of<th>elements - Separate multiple header IDs with spaces
Check
Verify that td headers attributes reference valid and existing th IDs.
Fix
Correct the headers attribute to reference the appropriate th IDs.