{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-table-headers-a9f3c6d2b74d","title":"Define Proper Table Headers for Accessibility","summary":"Ensure table headers are properly defined using `<th>` elements with appropriate scope attributes to improve accessibility for screen readers and assistive technologies. This includes defining headers in HTML tables and ensuring compliance with accessibility standards like WCAG.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-table-headers-a9f3c6d2b74d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-table-headers-a9f3c6d2b74d","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-table-headers-a9f3c6d2b74d.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-table-headers-a9f3c6d2b74d\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure that all header cells use `<th>` and include the `scope` attribute (either `col` or `row`) to clarify the relationship between headers and data cells. This is a prerequisite for ensuring screen readers correctly announce the context of each data cell.","instructions":"---\nname: table-headers\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Define proper table headers. 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\/table-headers\n---\n\n# Define proper table headers\n\nProperly defined headers allow screen readers to announce the context for each data cell, making complex tables understandable.\n\n## Quick Reference\n\n- Use `<th>` for all table headers, not `<td>`\n- Apply `scope=\"col\"` or `scope=\"row\"` to clarify header relationship\n- Ensure every data cell is associated with at least one header\n- In simple tables, prefer fixing header associations before escalating to caption-level recommendations\n- Missing `scope=\"col\"` on a straightforward header row is often the clearest first fix\n\n## Check\n\nCheck that all data tables use `<th>` elements for headers with appropriate scope attributes.\n\n## Fix\n\nConvert header cells to `<th>` and add the correct `scope` attribute.\n\n## Explain\n\nExplain how `<th>` and `scope` help assistive technologies communicate the structure of data tables.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Define proper table headers. 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\/table-headers\n","use_cases":["Fixing header rows in HTML tables to ensure screen readers announce context correctly.","Improving accessibility for complex data tables in web applications.","Ensuring compliance with accessibility standards like WCAG for table structures."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/table-headers\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:51:40.000000Z","updated_at":"2026-11-24T07:12:32.000000Z","seo_title":"Define proper table headers for accessibility","seo_description":"Ensure table headers are properly defined using <th> elements with scope attributes for better accessibility. Improve screen reader compatibility and data structure.","seo_keywords":["proper table headers","accessibility table headers","screen reader table headers","HTML table headers","WCAG table headers"]}}