Mobile app version of vmapp.org
Login or Join
Shelley277

: 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"

@Shelley277

Posted in: #Html #Html5 #Markup #MetaTags #Multilingual

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

3 Comments

Sorted by latest first Latest Oldest Best

 

@RJPawlick198

<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.

10% popularity Vote Up Vote Down


 

@Rivera981

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.

10% popularity Vote Up Vote Down


 

@Sarah324

It belongs ion the <html> tag:

<html lang="en">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme