Skip to main content

Cornell University

Web Accessibility Reviews

The default language of each page must be defined in the html tag.

WGAC 2 criterion 3.1.1 Language of Page (A)
Category Structure
ACT Rules

WCAG 2 criterion

3.1.1 Language of Page (Level A)

Tools and requirements

  • Siteimprove
  • Screen Reader

Test procedure

Siteimprove has a check for this requirement. It looks to ensure that the lang attribute is applied to the <html> tag at the start of the document. For most Cornell based sites, the lang attribute here should read "en" or "en-US" for American English.

If you do run across a site that is predominantly in a different language other than English, then the lang attribute needs to have the value which correlates to the predominant language of the page.

When testing pages in an alternate language than your default (probably English if you are reading this), you need to ensure that your screen reader is set up to have voices enabled for the language you are testing. On Mac, you can set this up in VoiceOver by going to your VoiceOver Utility, select "Speech" and click the "Voices" tab. From there, press the plus (+) button to assign voices to different languages.

An easy-to-read reference to language codes is provided by W3Schools (https://www.w3schools.com/tags/ref_language_codes.asp)

AI Prompt