The scope attribute on <th> defines which cells that header relates to: the whole row, column, row group, or column group. Screen readers use it to announce the right context for data cells.
For simple tables, browsers often infer scope — but stating it explicitly is clearer and more reliable. For complex multi-header layouts, also use headers with header ids.
Baseline · Widely available.
Not deprecated on <th>. Enumerated values: row, col, rowgroup, colgroup.
Deprecated on <td>.
Do not put scope on data cells. Use <th> for headers.
Second body row omits a second header cell (already spanned).
Preferrow/col for simple tables; use groups when structure needs them.
Edge Cases & Pitfalls
Most mistakes are using td as a header or skipping headers on complex grids.
element
Only on <th>
scope on <td> is deprecated.
complex
Multi-level headers may need headers
Link cells to th ids when scope alone is ambiguous.
values
Invalid values are ignored
Stick to row, col, rowgroup, colgroup.
a11y
Inference is not always enough
Explicit scope improves reliability across assistive tech.
Compatibility
Browser Support
scope is an HTML attribute on <th> for table header associations. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
scope
Supported everywhere modern tables work. Prefer explicit scope on th for accessibility.
98%Global support (approx.)
Google ChromeYes
Full support
Mozilla FirefoxYes
Full support
Apple SafariYes
Full support
Microsoft EdgeYes
Full support
OperaYes
Full support
Samsung InternetYes
Full support
Internet ExplorerYes
Supported
scopeWidely supported
Bottom line: Safe to use on th. Add headers for complex multi-header tables.
Remember
Key Takeaways
Role: say which cells a <th> headers.
Common:col + row for simple grids.
Groups:colgroup / rowgroup when structure needs them.
Not on td — use headers for complex links.
One line:scope on <th> tells which row/column/group the header labels.
Frequently Asked Questions
On a th element, scope tells which cells that header labels: the whole row, column, row group, or column group. Assistive technologies use it to announce context.
Use scope on th only. Putting scope on td is deprecated — use th for headers instead.
row, col, rowgroup, and colgroup. Invalid or missing values let the browser infer associations, which can be wrong for complex tables.
For simple tables, scope is enough. Use the headers attribute (ids of th cells) when relationships are multi-level or ambiguous.
No. It is an accessibility association. You can still style th[scope="col"] with CSS if you want visual cues.
No on th — it is a Baseline widely available attribute. It is deprecated on td.