lang attribute: valid document langThis page's <html> element has a correctly formatted, valid lang value.
Expected result, document level: Green banner, Document lang: en-AU (valid).
<html lang="en-AU">
...
</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>