Every page of your website has a language assigned
Setting every webpage’s HTML language is an easy way to help your users, including those browsing your website with assistive technology. Setting a language is important because the way that screen readers pronounce words depends on the HTML language assigned to your website.
What to do
Ensure that each page of your website has a language assigned to it.
Tips
- Set the language in your template and you’ll only need to do this once.
- If you trade internationally and have different parts of your website in different languages, make sure they are assigned correctly.
- HTML language codes match the ISO language codes standard. W3Schools has a full list of language codes.
See also
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.