lang attribute: invalid document langThis page's <html> element uses the full word "english" instead of a valid language code.
Expected result, document level: Red banner, Document lang: "english", did you mean "en"?
<html lang="english">
...
</html>
This 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>
This 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>
This 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>