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

Conversation

Projects
None yet
2 participants
@alexphilin
Copy link
Contributor

alexphilin commented Dec 2, 2018

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

This comment has been minimized.

Copy link
Collaborator

chrisdavidmills commented Dec 6, 2018

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?

@alexphilin

This comment has been minimized.

Copy link
Contributor Author

alexphilin commented Dec 6, 2018

Done.

@chrisdavidmills

This comment has been minimized.

Copy link
Collaborator

chrisdavidmills commented Dec 6, 2018

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