All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.javascript.S6849.html Maven / Gradle / Ivy

There is a newer version: 10.17.0.28100
Show newest version

HTML documents should have a valid IETF’s BCP 47 lang attribute.

Why is this an issue?

Screen readers require a specified language to function correctly. Without it, they default to the user’s set language, causing issues for multilingual users. Specifying a valid language ensures correct pronunciation and a less confusing experience.

How to fix it

Add a lang attribute with a valid IETF BCP 47 value.

Code examples

Noncompliant code example

<html></html>

Compliant solution

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

Resources

Documentation





© 2015 - 2024 Weber Informatics LLC | Privacy Policy