Skip to content

<html> element does not have a [lang] attribute #2471

@gedenata

Description

@gedenata

🐛 Bug Report

If a page doesn't specify a lang attribute, a screen reader assumes that the page is in the default language that the user chose when setting up the screen reader. If the page isn't actually in the default language, then the screen reader might not announce the page's text correctly.

Have you read the Contributing Guidelines on issues?

yes.

To Reproduce

  • When deploy the index.html to server there is no lang attribute, or
  • View Page Source the website <!DOCTYPE html><html lang=""><head><meta charSet="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" />

Expected behavior

Your Environment

  • Docusaurus version used: "docusaurus": "^1.14.4"
  • Google Chrome Version 80.0.3987.149 (Official Build) (64-bit)
  • macOS Mojave V.10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionhelp wantedAsking for outside help and/or contributions to this particular issue or PR.v1This issue is for Docusaurus 1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions