What are the pros and cons of adding

IE 8 Doc Mode - Pros and Cons <meta http-equiv = "x-ua-compatible" content = "IE = 8">

What are the pros and cons of adding

<meta http-equiv="x-ua-compatible" content="IE=8">

to the website. I would like IE 8 to display in IE 8 Doc mode, so the styles are more cohesive in all browsers. I’m just worried about the negative consequences of adding this.

+3
source share
1 answer

IE8 will be displayed in IE8 standards mode if you provide the appropriate DOCTYPE, for example <!DOCTYPE html>. <meta http-equiv="x-ua-compatible" content="IE=8">not required to force it in this case.

, , IE9, IE8. - - IE9 ,

<!--[if IE 8]>
  <meta http-equiv="x-ua-compatible" content="IE=8">
<![endif]-->

. <!DOCTYPE html>, ( IE6).

+3

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


All Articles