Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 11 down vote accepted

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.

share|improve this answer
Thanks very cool! – eric Aug 27 '10 at 14:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.