WCAG 3.1.1 Language of Page — Testing Guide for Mobile & Web Apps

WCAG 3.1.1, "Language of Page," is a foundational accessibility requirement. Its core tenet is simple: clearly declare the primary language of your web page or application content. This isn't about co

June 29, 2026 · 6 min read · WCAG Guides

Ensuring WCAG 3.1.1 Compliance: Language of Page (Level A)

WCAG 3.1.1, "Language of Page," is a foundational accessibility requirement. Its core tenet is simple: clearly declare the primary language of your web page or application content. This isn't about complex linguistic analysis; it's about providing a clear signal to assistive technologies and browsers.

What WCAG 3.1.1 Requires

At its most basic level, WCAG 3.1.1 mandates that the default human language of each web page is programmatically determined. This means that browsers, screen readers, and other assistive technologies can understand what language the content is written in. This is typically achieved by setting the lang attribute on the tag for web content. For mobile applications, this translates to setting the appropriate locale for the application's UI elements.

Why WCAG 3.1.1 Matters

Incorrectly declared or missing language information creates significant barriers for users, especially those relying on assistive technologies.

Common Violations and Examples

Violations of WCAG 3.1.1 often stem from oversight or a lack of understanding of its importance.

#### Web Application Examples

  1. Missing lang Attribute:
  1. Incorrect lang Attribute Value:
  1. Dynamic Content Mismatch:

#### Mobile Application Examples (Android/iOS)

Mobile applications don't have an tag, but the principle remains the same. The application's declared locale dictates how UI elements are rendered and interpreted.

  1. App Not Localized:
  1. Incorrect Locale Configuration:

How to Test for WCAG 3.1.1 Compliance

Testing for WCAG 3.1.1 is relatively straightforward, combining manual checks with automated tools.

#### Manual Testing Steps

  1. Inspect Source Code: Open your web application in a browser, right-click, and select "View Page Source" (or similar). Locate the declaration and the tag. Verify that the lang attribute is present and set to the correct ISO 639-1 language code (e.g., en for English, es for Spanish, fr for French).
  2. Check for Mixed Languages: If your application has dynamic content or sections that might be in different languages, manually review these areas. Ensure that if a significant portion of content is in a different language, it's either correctly declared using lang on specific elements (e.g., ...) or handled by the application's localization strategy.
  1. Device Language Setting: Change your device's primary language to a language other than the one you primarily developed in.
  2. Launch Application: Open your application.
  3. Verify UI Text: Observe all visible text elements: button labels, navigation titles, error messages, headings, and any other UI components. Ensure they are displayed in the language you set on your device. If your app supports multiple languages, test switching between them within the app's settings and verify the UI updates correctly.

#### Automated Tools

#### Mobile-Specific Considerations

How to Fix Violations

#### Web Application Fixes

or for Spanish:


        <!DOCTYPE html>
        <html lang="es"> <!-- For Spanish content -->
        <head>
            <title>Mi Sitio Web</title>
        </head>
        <body>
            <h1>¡Bienvenido!</h1>
        </body>
        </html>

This approach is generally less preferred than ensuring the entire page's primary language is declared correctly and using proper internationalization frameworks for dynamically loaded content.

#### Mobile Application Fixes

How SUSA Checks This Criterion

SUSA (SUSATest) autonomously verifies WCAG 3.1.1 compliance as part of its broad accessibility testing suite.

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free