HTML checks - check the language the content is written in #67
Labels
accessibility
Improves accessibilty for users with diverse needs
Community Inclusion
Supports diverse inclusion and builds community
documentation
Improvements or additions to documentation
Milestone 4
MVP accessibility checks
Milestone
Summary
A screen reader needs to know what language a page is written in so it uses the correct speech libraries for accent and pronunciation. It only knows this if the language is specified in the page HTML.
Deadline
20/02/2021
What needs to be done?
You’ll need to check the HTML of your sample content pages to see whether your website does this. To inspect the page HTML, use the same method you used when checking whether your content was marked up appropriately.
Once you’ve opened the HTML, scroll to the top of the panel. You should see a <!doctype html> tag. Directly under that you should see an <html lang=” tag. This is where the screen reader finds out the page language.
If the page is written in English, the tag should read <html lang=“en” or <html lang=“en-gb”. If it’s empty, the screen reader cannot tell what language the page is in.
If any of your sample pages contain content written in other languages, you’ll need to check that’s marked up properly too, using the country code for the relevant language.
Who can help?
The text was updated successfully, but these errors were encountered: