Skip to content

Importance of the lang attribute on HTML elements #875

@cyberbaloo

Description

@cyberbaloo

Problematic behavior
Screen readers use this information to determine the pronunciation of text. Without this attribute, a screen reader might pronounce French with an English accent. This also helps search engines index content. Translation tools can more easily identify the source language and suggest translations.
This attribute is not declared in the header <html>

Remember to change this attribute when selecting a new language in the language selector.

Expected behavior/code
<html class="cunningham-theme--dsfr lasuite--gaufre-loaded">

Possible Solution
If the user interface is in English, add the attribute lang="en” or in French lang="fr"

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions