Valid language code

Correct code to identify language.

Indicators

Impact

(How ScanGov measures tasklist priorities.)

About

A valid language code is a short code used to represent a language, such as "en" for English or "fr" for French. It's important for websites and apps to use the correct code to display text in the right language for users. These codes also help websites adjust to different regions, ensuring users see content in their preferred language.

Why it's important

Ensures websites display text in the correct language, making content easier to understand for users.

Code

<html lang="en">

Error

(ScanGov messaging when a site fails a standard)

Page language is not defined in the HTML.

Guidance

Feedback