Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accessibility] HTML element does not have lang attribute #837

Closed
nwanduka opened this issue Mar 21, 2024 · 2 comments
Closed

[Accessibility] HTML element does not have lang attribute #837

nwanduka opened this issue Mar 21, 2024 · 2 comments
Labels

Comments

@nwanduka
Copy link
Contributor

Describe the bug
HTML element does not have a lang attribute.
User Impact: Serious
Tool used: Axe

To Reproduce
Steps to reproduce the behavior:

  1. On the slides page, click open to view one of your uploaded slides
  2. Right-click on the page and click inspect to open the devtools window
  3. If you have the Axe extension installed, open it and run it
  4. One of the accessibility issues discovered is that the html element does not have a lang attribute

Expected behavior
In keeping with the WCAG 2.1 standards for accessibility, having a lang attribute in the html element helps assistive technologies, such as screen readers, to properly interpret and pronounce text content for users who may have different language preferences or accessibility needs.

Screenshots
image

HTML lang attribute lacking

Desktop:

  • OS: Windows
  • Browser: Microsoft Edge
  • Version: Version 122.0.2365.92

How to fix this issue
Add the lang attribute to the element of your HTML documents and specify the appropriate language code. For example, for English content, you would use lang="en", for French content, you would use lang="fr", and so on.
Ensure that the lang attribute reflects the primary language of the content on the page.

@Ayesh-07
Copy link
Contributor

@nwanduka, I've made an attempt to fix this issue. I would be very appreciative if you could review it.

birm added a commit that referenced this issue Mar 26, 2024
Fixed issue #837  HTML element does not have lang attribute
@nwanduka
Copy link
Contributor Author

I'll be closing this issue now since it has been resolved in PR #856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants