Table th scope A11y Check
Resolves th scope keywords to row, col, rowgroup, colgroup or automatic. Valid lexical scope does not establish correct header associations or group anchoring.
Description
A table header’s scope tells how it relates to rows, columns or their groups.
A table header’s scope tells how it relates to rows, columns or their groups. Automatic scope differs from an explicitly recognized lexical value.1
The tool returns state, validKeyword. The fields describe the supplied local pattern or effective state, or contain the formatted markup shown below.
When to use Table th scope A11y Check
Use this for the following task: Resolves th scope keywords to row, col, rowgroup, colgroup or automatic. Valid lexical scope does not establish correct header associations or group anchoring. Provide the requested local fields extracted from the relevant element or attribute.
How to use Table th scope A11y Check and understand its results
- Prepare the parsed element names, attribute values or direct element-child lists requested below. Keep attribute presence separate from its value.
- Enter present, value according to the field table, then run the tool.
- Read state, validKeyword. Check the effective state, recognized-token flags or generated markup against the rules below.
- Correct any reported local mismatch and check the resulting markup in its intended document and browser context.
| Input field | Meaning | Value type and bounds | Requirement |
|---|---|---|---|
| present | Present | boolean | Required |
| value | Value | string; maximum text length 100000 | Required |
Supply attribute presence and value. Fold ASCII case, look up the four keywords and return state plus validKeyword.
recognized: row, col, rowgroup, colgroup; otherwise auto The symbols and boundary conditions refer to the supplied fields and the implementation described above.
| Output field | Meaning | Value type |
|---|---|---|
| state | State | string |
| validKeyword | Valid Keyword | boolean |
{
"input": {
"present": true,
"value": "COL"
},
"output": {
"state": "col",
"validKeyword": true
}
} Limitations and assumptions
The present flag distinguishes an absent attribute from a present empty value. Keyword matching folds ASCII uppercase without trimming. A recognized scope does not establish correct table-header associations, row-group anchoring or complete accessibility.
The tool does not fetch a page, run a browser or validate an entire HTML document. Malformed tool requests produce input errors; valid requests can still report unrecognized values or failed local checks.
Alternative or Complementary methods
Choose fieldset/legend A11y Pair Check when you need its operation: Checks a fieldset direct-element-child list for a single legend in first position. A legend is optional in HTML; this check reports the structural pairing without claiming complete accessibility. Choose figure/figcaption Pairing Check for the complementary operation: Checks figure direct-element children for at most one figcaption at either end. Missing figcaption is allowed; caption content quality and accessibility are outside this structural check.
Background reference: HTML Standard: Table th scope A11y Check.
References
Similar or alternative tools
- fieldset/legend A11y Pair Check
Checks a fieldset direct-element-child list for a single legend in first position. A legend is optional in HTML; this check reports the structural pairing without claiming complete accessibility.
- figure/figcaption Pairing Check
Checks figure direct-element children for at most one figcaption at either end. Missing figcaption is allowed; caption content quality and accessibility are outside this structural check.