E-mail List Archives
Re: Html Lang code for page
From: Adrian Roselli
Date: Dec 22, 2015 10:14AM
- Next message: Joseph Sherman: "Re: Html Lang code for page"
- Previous message: Aaron Cannon: "Re: Html Lang code for page"
- Next message in Thread: Joseph Sherman: "Re: Html Lang code for page"
- Previous message in Thread: Aaron Cannon: "Re: Html Lang code for page"
- View all messages in this Thread
I tracked a bunch of ways that lang is used on a page :
â¢ VoiceOver on iOS uses the attribute to auto-switche voices.
â¢ VoiceOver can speak a particular language using a different accent when
â¢ Leaving out the lang attribute may require the user to manually switch to
the correct language for proper pronunciation.
â¢JAWS uses it to load the correct phonetic engine / phonologic dictionary â
Handy for sites with multiple languages.
â¢ NVDA (Windows) uses it in the same way as VoiceOver and JAWS.
â¢ When used in HTML that is used to form an ePub or Apple iBooks document,
it affects how VoiceOver will read the book.
â¢ Firefox, IE10, and Safari (as of a year ago) only support CSS hyphens:
auto when the lang attribute is set.
Frankly, I believe it should be on every page. Since it can be set in a
global template, it should be a matter of setting it once and not worrying
until you find a rare case where you have to override it (which is good).
On Tue, Dec 22, 2015 at 12:01 PM, Joseph Sherman < <EMAIL REMOVED> >
> I know 3.1.1 The default human language of each Web page can be
> programmatically determined, but my web folk find this annoying on every
> page and web app, since it is all primary language English, and they tend
> to follow 3.1.2 for language of parts.
> So question: Is 3.1.1 really critical in most cases? Is there a good
> reason I can offer for using it on every page? What happens when a Spanish
> screen reader user comes to an English page without a lang attribute? Does
> the software know to read in English?
> > > > >