## ACT Rule - **ACT Rule ID:** [off6ek](https://www.w3.org/WAI/standards-guidelines/act/rules/off6ek/) - **Rule Name:** HTML element language subtag matches language - **WCAG SC:** 3.1.2 Language of Parts (Level AA) ## What it checks This rule checks that the `lang` attribute value on HTML elements matches the actual language of the text content within those elements. ## Feasibility **DOM-only feasible.** The check involves validating lang subtag format and consistency of lang attribute values on elements. ## Notes - Related to issue #350 (ACT rules triage) - The existing `valid-lang` rule checks lang attribute validity; this rule checks that lang matches actual content - May require a language detection heuristic or could focus on structural checks
ACT Rule
What it checks
This rule checks that the
langattribute value on HTML elements matches the actual language of the text content within those elements.Feasibility
DOM-only feasible. The check involves validating lang subtag format and consistency of lang attribute values on elements.
Notes
valid-langrule checks lang attribute validity; this rule checks that lang matches actual content