Use a valid lang attribute value
Last updated:
This evaluation is included in the Accessibility audit offered by ExcellentWebCheck. Ensuring website accessibility is essential to ensure everyone can use the internet without barriers.
What is a valid language code?
Valid language codes are either two-letter or three-letter language codes. You can find the list of valid language codes in the ISO 639-1 code list.
For english this would be en
:
<html lang="en">
<!-- content -->
</html>
Why is this important?
The language of a page is used by screen readers to speak the content of the page in the correct language.
Checkout the language check for other reasons why the language attribute is important.
Free Website Accessibility Audit
Was this article helpful?
Thanks for your feedback!
Checkout the ExcellentWebCheck services
ExcellentWebCheck's goal is to improve the online user experience. The tools of ExcellentWebCheck help to detect and improve usability problems on your website.