Where should this be the place in the to render properly in IE7 in IE8? ...">

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

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> Where should there be a place in the <head> for the correct rendering of the document as IE7 in IE8?

+4
source share
3 answers

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

From the W3C coding specification :

A META declaration should only be used when the character encoding is organized so that ASCII-based bytes denote ASCII characters (at least until the META element is parsed). META declarations should appear as early as possible in the HEAD element.

+2
source

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

+1
source

Everywhere inside the <head> element.

You can also send it directly as an HTTP header if you want. For a full site, it might make sense to simply configure the server to send this additional header, than to relate to each file.

0
source

Source: https://habr.com/ru/post/1299642/


All Articles