Important: This website does not attempt to establish a standard for how assistive technologies must behave. Read the FAQ for more information. Additionally, this is a work in progress. Please submit feedback or suggestions.

lang attribute (html)

Screen reader support level: partial (3/23)

Voice Control support level: unknown

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 5 years ago to 5 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 5 years ago. Consider running the associated tests and contributing results.

Expectations

What are expectations?

Screen Reader support by expectation

ExpectationJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeEdgeFirefoxEdgeChromeEdgeFirefoxFirefoxChromeSafariSafari
MUST switch to the specified language if it is validunknownunknownunknownunknownunknownunknownsupportedunknownunknownunknownpartial (1/2)

Voice Control support by expectation

ExpectationDragon Naturally SpeakingVoice Access (Android)Voice Control (iOS)Voice Control (MacOS)Windows Speech RecognitionWindows Voice Access
ChromeChromeSafariSafariEdgeChromeEdgeChrome
Not applicable

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
Screen Reader support for 'MUST switch to the specified language if it is valid'
TestJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeEdgeFirefoxEdgeChromeEdgeFirefoxFirefoxChromeSafariSafari
HTML option[lang] element applied to: option elementunknownunknownunknownunknownunknownunknownsupportedunknownunknownunknownnone
HTML p[lang] element applied to: p elementunknownunknownunknownunknownunknownunknownsupportedunknownunknownunknownsupported