‘Language of Page’ requires that each webpage has a default human language assigned.
For both users who rely on conventional web browsers and those who prefer assistive technologies, assigned a webpage’s language is essential for understanding.
Among the benefits, text is rendered more accurately, screen readers will use the correct pronunciation rules and captions will load correctly.
How to Pass ‘Language of Page’
Set the default language of each webpage using the lang HTML attribute.
‘Language of Page’ Tips
Set the language in your site template so you only have to do this once (unless your website has pages in different languages).
If a webpage has content in more than one language, set the page to the language used most.
If a webpage uses multiple languages equally, set the page to the language used first.
When using English, be aware of the three options “en”, “en-gb” and “en-us”. If in doubt, stick with “en” as this lets users set their preference.
Free Developer Resources
Join over 3,700 subscribers on my weekly web accessibility email and get free developer resources like WCAG Checklists and special offers.
Over 600 developers like you have learned more about the Web Content Accessibility Guidelines with my guidebook.