Jitendra Vyas
Jitendra Vyas

Reputation: 152677

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

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

Upvotes: 4

Views: 11119

Answers (3)

Pekka
Pekka

Reputation: 449465

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.

Upvotes: 2

ЯegDwight
ЯegDwight

Reputation: 25229

In the document's head, where the other meta tags are, after <meta http-equiv="content-type" ...>.

Upvotes: 1

Joey
Joey

Reputation: 354536

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

Upvotes: 0

Related Questions