Can we count your visit?

Our analytics service records the pages you view, so we can see which ones are useful. It saves a random ID in your browser, and we never use it for advertising. Read our privacy policy.

Page language

The language a page is written in, declared in code so screen readers pronounce it correctly.

Also called
language of page, lang attribute

Page language is the main language of a page, declared with the lang attribute on the html element, such as lang="en". WCAG success criterion 3.1.1, “Language of Page”, is Level A and requires it. Success criterion 3.1.2, at Level AA, asks the same for passages in another language.

Screen readers use the declared language to choose a voice and pronunciation rules. Without it, a French page read with English rules is close to impossible to follow. Browsers also use it to offer translation and to hyphenate. The fix is one attribute.

Source

World Wide Web Consortium (W3C), 2024. Checked .

Get help with every step.

We can work with organizations of every size and industry, from a startup serving its first customers to a bank. We find where you stand, help your team fix what matters, and keep checking as your product changes. That work is evidence of your effort, not a legal guarantee.