caMicroscope
caMicroscope copied to clipboard
[Accessibility] HTML element does not have lang attribute
Describe the bug HTML element does not have a lang attribute. User Impact: Serious Tool used: Axe
To Reproduce Steps to reproduce the behavior:
- On the slides page, click open to view one of your uploaded slides
- Right-click on the page and click inspect to open the devtools window
- If you have the Axe extension installed, open it and run it
- 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
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.
@nwanduka, I've made an attempt to fix this issue. I would be very appreciative if you could review it.
I'll be closing this issue now since it has been resolved in PR #856