--- name: td-headers-attr description: "Use when reviewing rendered HTML, interactive components, or design-system patterns related to Link table cells to headers using IDs. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant." metadata: category: accessibility priority: medium difficulty: intermediate estimatedTime: "10" source: frontendchecklist.io url: https://frontendchecklist.io/en/rules/accessibility/td-headers-attr --- # 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 `headers` attribute for complex tables where `scope` isn't enough - Ensure the `headers` attribute references valid `id` values of `