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

<html> element must have a lang attribute #113

Merged
merged 2 commits into from Dec 6, 2018
Merged

<html> element must have a lang attribute #113

merged 2 commits into from Dec 6, 2018

Conversation

alexfi1in
Copy link
Contributor

When configuring a screen reader, users select a default language. If the language of a webpage is not specified, the screen reader will assume it is the default language set by the user. This becomes an issue for users who speak multiple languages and access website in more than one language. It is important to specify a language and ensure that it is valid so website text is pronounced correctly.

For example, my VoiceOver is trying to read these links in Russian
Screenreader testing section

Look at good-semantics.html, and note how the headers are found by the screenreader and available to use for navigation. Now look at bad-semantics.html, and note how the screenreader gets none of this information. Imagine how annoying this would be when trying to navigate a really long page of text.

@chrisdavidmills
Copy link
Contributor

Thanks for this; this is an oversight we are intending to fix.

I'd prefer to settle on en-US as a standard for MDN language. Can you update this?

@alexfi1in
Copy link
Contributor Author

Done.

@chrisdavidmills
Copy link
Contributor

Fantastic, thanks!

@chrisdavidmills chrisdavidmills merged commit 52a89b8 into mdn:master Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants