Skip to content

Add lang attribute to html for better accessibility #9160

@okonet

Description

@okonet

Feature request

html tag accepts lang attribute that is, according to MDN, very important for accessibility and accessible technologies like screen readers.

Providing a lang attribute with a valid IETF identifying language tag on the element will help screen reading technology determine the proper language to announce.

Describe the solution you'd like

Add lang="en" by default and provide a simple way to configure the language for the whole project.

Describe alternatives you've considered

We've ended overriding the _document.js as of https://github.com/zeit/next.js#custom-document but not providing this by default contributes to even worse web accessibility situation.

Additional context

Google Chrome shows "Translate this page" dialog without the lang set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions