lang attribute (html)
Screen Reader support level: partial (3/22)
On this page
About this feature
The HTML lang
attributes lets authors change the language for content on a page.
Age of results
Results across all tests for this feature range from 6 years ago to 6 years ago. Detailed dates and version information can be found in associated tests.
Caution
Failing or partial results may be out of date. The oldest result is from 6 years ago. Consider running the associated tests and contributing results.
Expectations
Screen Reader support by expectation
Expectation | JAWS | Narrator | NVDA | Orca | TalkBack | VoiceOver (iOS) | VoiceOver (macOS) | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Edge | Chrome | Edge | Firefox | Firefox | Chrome | Safari | Safari | |
MUST switch to the specified language if it is valid | unknown | unknown | unknown | unknown | unknown | unknown | supported | unknown | unknown | unknown | partial (1/2) |
Expectation: switch to the specified language if it is valid
Strength of this expectation for different types of assistive technologies:
- Screen Readers: MUST
- Voice Control: NA
Test | JAWS | Narrator | NVDA | Orca | TalkBack | VoiceOver (iOS) | VoiceOver (macOS) | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Edge | Chrome | Edge | Firefox | Firefox | Chrome | Safari | Safari | |
HTML option[lang] element applied to: option element | unknown | unknown | unknown | unknown | unknown | unknown | supported | unknown | unknown | unknown | none |
HTML p[lang] element applied to: p element | unknown | unknown | unknown | unknown | unknown | unknown | supported | unknown | unknown | unknown | supported |