: Http-equiv=content-language alternative - the way of specifying document language Lots of web sites uses following meta tag to specify the default language of the document: <meta http-equiv="content-language"
Lots of web sites uses following meta tag to specify the default language of the document:
<meta http-equiv="content-language" content="es-ES">
When I go to W3C site and read about HTML language mark up I get this:
Using the meta element to specify the document-wide default language
is obsolete. Consider specifying the language on the root element
instead.
What is the way of specifying document language now?
More posts by @Shelley277
3 Comments
Sorted by latest first Latest Oldest Best
<meta http-equiv="content-language" content="ll-cc"> what is this
John Conde is correct that it should be included as part of the tag, but there's also the important consideration of ensuring that it's included as part of the HTTP Headers.
Most Meta elements are redundant replacements or over-rides for information that should be sent as part of the HTTP request and response.
The full answer to the question is answered by the W3C here: www.w3.org/International/questions/qa-http-and-lang.en @John Conde is correct that it should be included as part of the <html> tag, but there's also the important consideration of ensuring that it's included as part of the HTTP Headers.
Most Meta elements are redundant replacements or over-rides for information that should be sent as part of the HTTP request and response.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.