lang attribute: missing document langThis page's <html> element has no lang attribute at all.
Expected result, document level: Red banner, "NO DOCUMENT LANG, lang attribute missing from <html>."
<html>
...
</html>
The next paragraph contains a German phrase, correctly marked with lang="de":
Guten Tag, wie geht es Ihnen?
Expected result: Blue badge, "lang: de" (valid inline switch).
<span lang="de">Guten Tag, wie geht es Ihnen?</span>
The next paragraph has a lang attribute present but with no value:
This text has an empty lang attribute.
Expected result: Amber badge, lang attribute present but has no value.
<span lang="">This text has an empty lang attribute.</span>
The next paragraph uses a made-up, unrecognised language code:
This text has an unrecognised lang code.
Expected result: Amber badge, unrecognised code, no confident suggestion available.
<span lang="xyz">This text has an unrecognised lang code.</span>
The next paragraph uses an invalid language code:
This text has an invalid lang code.
Expected result: Amber badge, unrecognised code, no confident suggestion available.
<span lang="English">This text has an invalid lang code.</span>