Testing lang attribute: invalid document lang

This 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 markup (document level)
<html lang="english">
  ...
</html>

Inline example 1: valid language switch

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).

HTML markup
<span lang="de">Guten Tag, wie geht es Ihnen?</span>

Inline example 2: empty lang attribute

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.

HTML markup
<span lang="">This text has an empty lang attribute.</span>

Inline example 3: unrecognised code

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.

HTML markup
<span lang="xyz">This text has an unrecognised lang code.</span>