how can I specify the language of my website in HTML? I read that you can either use a meta tag or specify inside the <html> tag, which one is better?
If there is any other way, please specify it.
-
Possible duplicate of What's the difference between the lang attribute and the <meta http-equiv="Content-Language" content="en-US"> tag?Gerald Schneider– Gerald Schneider2015-12-01 13:57:29 +00:00Commented Dec 1, 2015 at 13:57
Add a comment
|
1 Answer
You would use the lang= attribute on the <html> element.
4 Comments
Madara's Ghost
@JaceLee: stackoverflow.com/questions/4436541/…
Jace Lee
So let me get this straight, the
lang= in the <html> is to say what language the page is written in, the <meta> is for saying what the language is going to be output as?Jace Lee
Nevermind that, seems that the
meta is obsolete, so I'll use <hrml lang="en"> for now, until something goes wrong. ThanksJace Lee
Instead of using the tag, is it possible to add a line of code into the .htaccess file for that?