Inspectopedia Help

Missing required 'lang' attribute

Reports a missing lang (or xml:lang) attribute in a html tag. Suggests adding a required attribute to state the default language of the document. Based on WCAG 2.0: H57.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

HtmlRequiredLangAttribute
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | HTML | Accessibility

Last modified: 11 September 2024