Document Language

Checks that the document has a language attribute defined (e.g., <html lang="en">).

What is this check?

This check ensures that the main `<html>` tag has a `lang` attribute, which declares the primary language of the page.

Why is it important?

The `lang` attribute allows screen readers to switch to the correct language profile, ensuring proper pronunciation and accent.

What is the impact?

Without a language attribute, screen readers may use the wrong language to read the content, making it sound like gibberish.

Example Implementation

<html lang="en">
  ...
</html>