-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move lang attribute from html to body #286
Comments
Just looked at the spec and surrounding documentation about @lang ... This looks legit. I'd be happy with this one. :) good call. |
I know this is closed and committed, but doesn't it make sense to keep the lang attribute on the <html> element because of the <title> element? That's text people read and search engines crawl. |
hixie's preference is for the lang to stay on the HTML tag... reopening... :/ |
Okay it's a bit redundant but.... |
It works, but wasn't the point of this fix to be more DRY? I would leave well enough alone and keep on |
@richardcornish: putting it on the html would make it less DRY because of the conditional comments. Can we put it on head and body tags? Leaving it in the html tag repeats it 4 times rather than 2. Come to think of it, |
@davidmurdoch There would be two instances of I like the |
I prefer it on html tag than on body for same reasons Hixie mentions. |
Divya, how do you feel about using the meta tag? |
This is what I wrote about it when I was researching language attributes: http://nimbupani.com/declaring-languages-in-html-5.html |
moving lang back to html, also consistent spacing in css. closed by 2a2f1d6 |
meh, things just got WET. |
Yup. they did. But here arent any great solutions here. :/ |
Can we move the html element's
lang
attribute to the body?I don't think we need to specify the (human) language of our css and javascript resources.
...should be perfectly valid.
It will DRY things up a bit and help the charset meta element to be within the first 512 bytes if a developer needs to add additional attributes to the html tag(s).
The text was updated successfully, but these errors were encountered: