<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> Where it should be place in <head>to render doucment as IE7 properly in IE8?

cross-browser, css, html, xhtml

Solution

Seeing as this meta tag changes the way the document is rendered, and could cause visual changes, I would apply the same rule as that for the `content-type` header, which is as early in the `<head>` as possible.

From the W3C encoding specs:

The META declaration must only be used when the character encoding is organized such that ASCII-valued bytes stand for ASCII characters (at least until the META element is parsed). META declarations should appear as early as possible in the HEAD element.

Problem

`<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />` Where it should be place in `<head>` to render document as IE7 properly in IE8?

Original source