Testing lang attribute: valid document lang

This page's <html> element has a correctly formatted, valid lang value.

Expected result, document level: Green banner, Document lang: en-AU (valid).

HTML markup (document level)
<html lang="en-AU">
  ...
</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>