WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Html Lang code for page

for

From: Patrick H. Lauke
Date: Dec 22, 2015 1:49PM


On 22/12/2015 17:01, Joseph Sherman wrote:
> 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 let me get this right: the developers are finding it too annoying to
add a single lang attribute on the html element for 3.1.1

<html lang="en">

but they tend to follow 3.1.2, meaning that for each passage or phrase,
they're explicitly specifying the language, so presumably doing
something like

<div lang="en">...</div>
<p lang="en">...</div>

etc? If they AREN'T doing the latter, then no they're not following
3.1.2 in that case (as in the absence of a default language set for the
whole page, you must add it explicitly to every container/bit of content
in order to still fulfill 3.1.2)...

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke