<html> document elements have a valid
This rule tests conformance of the following accessibility requirements:
This rule applies to every
lang attribute that is neither empty nor only ASCII whitespace and is declared on a document element which is an
<html> element in the HTML namespace and in a top-level browsing context.
- The value of the target attribute is a valid language tag.
This rule makes no assumptions.
This rule has the following accessibility support concern:
<object>elements are not applicable as
<object>elements create nested browsing contexts. However, as these elements are meant to provide a layer of isolation, the declared language of their parent browsing context will likely not be inherited, making it possible for non-valid
langattributes in nested browsing contexts to also cause accessibility issues.
<html lang=" "></html>
This document includes material copied from or derived from https://www.w3.org/WAI/standards-guidelines/act/rules/html-page-lang-valid-bf051a/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).