Mobile app version of vmapp.org
Login or Join
Cooney921

: Difference between meta tags Content-Language and language What's the difference between these two meta-tags <meta http-equiv="Content-Language" content="de, en"/> <meta name="language" content="de,

@Cooney921

Posted in: #Language #MetaTags

What's the difference between these two meta-tags

<meta http-equiv="Content-Language" content="de, en"/>
<meta name="language" content="de, en">


Are they both needed?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

Content-language is going away soon (note the big red "obsolete"), and I'm not sure language was ever official. The W3C recommends this instead:

<html lang="en">


The lang attribute works with most tags (except <script />, <br />, <frame />, etc), so you can mix, match, and cascade:

<p>This is English, since the html tag covers it.</p>
<p lang="ja">しかし、これではない</p>
<p>And back to English.</p>


It's been around since HTML 4 so it's safe. Since it's just a semantic descriptor, browsers don't "fully" support it (they only need to know the character set). Google & friends understand it though, and that probably matters more.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme