{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-th-has-data-cells-72f08896555a","title":"Ensure Table Headers Are Properly Associated with Data Cells","summary":"Verify that all `<th>` elements are correctly associated with `<td>` cells to maintain an accessible table structure. This ensures that assistive technologies can accurately interpret the relationship between headers and data cells.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-th-has-data-cells-72f08896555a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-th-has-data-cells-72f08896555a","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-th-has-data-cells-72f08896555a.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-th-has-data-cells-72f08896555a\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure that the table structure is validated using browser accessibility tools or assistive technology to confirm that headers are correctly mapped to data cells. Remove any empty or unnecessary headers that do not describe data.","instructions":"---\nname: th-has-data-cells\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure table headers associate with data cells. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/th-has-data-cells\n---\n\n# Ensure table headers associate with data cells\n\nOrphaned headers without data cells can confuse users of assistive technology and indicate a broken table structure.\n\n## Quick Reference\n\n- Every `<th>` must be associated with one or more `<td>` cells\n- Avoid empty headers that don't describe any data\n- Remove unnecessary headers to reduce screen reader noise\n\n## Check\n\nVerify that all `<th>` elements are correctly associated with data cells.\n\n## Fix\n\nRemove empty headers or ensure they are correctly mapped to data cells.\n\n## Explain\n\nExplain why every header must have associated data to maintain an accessible table structure.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Ensure table headers associate with data cells. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/th-has-data-cells\n","use_cases":["Reviewing HTML tables for accessibility compliance","Auditing interactive components with header cells","Testing design-system patterns involving tabular data"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/th-has-data-cells\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:56:30.000000Z","updated_at":"2026-11-24T07:12:47.000000Z","seo_title":"Ensure table headers are properly associated with data cells","seo_description":"Check that all table headers are correctly linked to data cells to ensure accessibility for assistive technologies.","seo_keywords":["accessibility table headers","data cells association","table structure validation","assistive technology check","HTML table audit"]}}