question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should we be using <html lang="en-GB"> not <html lang="en">?

See original GitHub issue

Page template is currently using <html lang="en">

I believe (un-tested) using <html lang="en-GB"> should tell a screenreader to switch to a British accent and pronounce words like aluminium, advertisement differently.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
NickColleycommented, Jul 4, 2018

Comment from his blog post:

I had a screenreader user on complaining that my website made his screenreader read out oddly: turned out the en-gb tag was switching his TTS. Confused him utterly! Most users won’t have multiple TTS variants, I suspect, but might be best to stick with “en” rather than “en-gb” and “en-us” so as not to surprise users?

0reactions
NickColleycommented, Jul 4, 2018

Looks positive, let’s do some testing 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the difference between <html lang="en'> and <html ...
The lang attribute specifies which language is used to write the content of a web page. It is used to set the language...
Read more >
why we use this <html lang="en"> (Example) - Treehouse
According to the W3C recommendation you should declare the primary language for each Web page with the lang attribute inside the <html> tag, ......
Read more >
What is the difference between <html lang="en"> and <html ...
Yes, however the value may or may not have any real meaning. <html ... In a similar way, <html lang="en-GB"> would mean "this...
Read more >
Why HTML is Not a Programming Language by Ben Romy
Unfortunately, coding only in HTML doesn't make you a programmer. In fact, HTML really shines when you use it in conjunction with an...
Read more >
lang - HTML: HyperText Markup Language - MDN Web Docs
The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found