<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Where it should be place in <head>
to render document as IE7 properly in IE8?
views:
1132answers:
4Anywhere within the <head>
element.
You can also send it directly as an HTTP header if you choose to. For a complete site it may make sense just to configure the server to send out this additional header than touching each and every file.
In the document's head
, where the other meta
tags are, after <meta http-equiv="content-type" ...>
.
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.