Not much to do about that right now, doesn’t really matter either 🙂
Yes it does matter. There is a way to pass the validator.
If your theme were valid and had a language_attributes call, that would have been added automatically.
Thanks Joost, that’s just the help I needed.
I was trying to be clever and changed
<html <?php language_attributes(); ?>>
to
<html dir=”ltr” lang=”en-NZ”>
The validator doesn’t like it. It turns out the NZ should be lower case.
Bill, You don’t have to use the second tag, unless you build different content for different english versions on your site.
Here are some sample language codes:
“en”: English
“en-US”: the U.S. version of English.
“en-cockney”: the Cockney version of English.
“i-navajo”: the Navajo language spoken by some Native Americans.
“x-klingon”: The primary tag “x” indicates an experimental language tag
more: http://www.w3.org/TR/html401/struct/dirlang.html
@billbennett: This solves the issue though? 🙂