Skip to main content
Vially Logo

WCAG 2.1 Criteria Documentation

3.1.1 Language of Page

High-Level Description

This success criteria requires the default language of a webpage to be identified in its code. This helps assistive technologies, like screen readers to read the content in the correct pronunciation and language-specific way. It ensures users who rely on such tools can understand the content as intended.

Detailed Description

Applies to:

  • All web pages, regardless of the type of content or purpose.

This allows:

  • Screen readers to pronounce words with the correct accent.
  • Browsers and tools to offer accurate spelling, grammar checks, and translations.
  • Assistive technology to present content in a way that aligns with the user's expectation.

Indicators of Non-Compliance:

  • The website sets the language inconsistently i.e. some pages are missing the lang attribute.
  • The website is missing the lang attribute entirely.
  • Text-to-speech output sounds incorrect or hard to understand due to wrong language setting.

Real World Examples

ScenarioIncorrect / Missing CodeCorrect Code
English homepage< html >< html lang="en" >
Screen readers can pronounce English correctly
Irish-language policy page< html lang="en" >< html lang="ga" >
Multilingual websiteNo language set on base pageEach page uses correct lang (e.g., lang="en", lang="ga", etc.)
Helps assistive technology and translation tools work correctly on all pages
Screen reader testingNo language set, screen reader defaults to system languageLanguage set explicitly, screen reader pronounces accurately.
Avoids misleading or mispronunciation

Disability Impact

Disability GroupWithout Language TagWith Language Tag
Blind UsersScreen reader mispronounces or confuses wordsScreen reader reads in the correct language/accent
Dyslexic UsersSpelling/grammar checkers show irrelevant suggestionsTools assist appropriate based on language context
Users with Cognitive DisabilitiesConfusion from unexpected or unclear audio outputLanguage-appropriate audio and assistive tool support

Supporting Documentation

Remediation Strategies

    < !-- English -- >
    < html lang="en" >
    < !-- Irish -- >
    < html lang="ga">

    Ensure the lang value reflects the dominant natural language used on the page, not just the site default.

    Set the lang attribute in all page templates to ensure consistent compliance across your site.