2 Messages
•
80 Points
Language missing or invalid
We are using the WAVE accessibility evaluation tool for our library website and we are getting the message:
Language missing or invalid
The language of the document is not identified or a lang attribute value is invalid.
How do we designate English as the site's language?
russell5607
2.1K Messages
•
21.2K Points
8 days ago
lang
attribute to the<html>
tag of each web page.<html>
tag: In the HTML code for each page of your website, find the opening<html>
tag, which is usually at the very top of the document.lang
attribute: Add thelang
attribute to the<html>
tag with the value "en" for English.lang
attribute allows screen readers to pronounce words with the correct accent and language profile.lang="en"
attribute to your<html>
tag, you will satisfy the Web Content Accessibility Guidelines (WCAG) Success Criterion 3.1.1, which requires that the default human language of each web page can be programmatically determined.2
0