Guidelines

What is meta tag X-UA-compatible?

What is meta tag X-UA-compatible?

X-UA-Compatible is a document mode meta tag that allows web authors to choose what version of Internet Explorer the page should be rendered as. It is used by Internet Explorer 8 to specify whether a page should be rendered as IE 7 (compatibility view) or IE 8 (standards view).

Do you need X-UA-compatible?

Depending upon what Microsoft browsers you support you may not need to continue using the X-UA-Compatible tag. If you need to support IE9 or IE8, then I would recommend using the tag. If you only support the latest browsers (IE11 and/or Edge) then I would consider dropping this tag altogether.

What is IE EmulateIE8?

IE=edge simply tells IE to use the last version of the rendering engine. It’s documented here, just like the less useful (in my opinion) IE=EmulateIE8 . IE=edge helps you avoiding some “compatibility” behaviors. It makes IE9 more compatible with other modern engines. See this related question for example.

What does the X-UA-compatible meta tag mean?

The X-UA-Compatible meta tag allows web authors to choose what version of Internet Explorer the page should be rendered as. IE11 has made changes to these modes; see the IE11 note below. Microsoft Edge, the browser that will be released after IE11, will only honor the X-UA-Compatible meta tag in certain circumstances.

Can a meta tag override the compatibility mode setting?

The X-UA-Compatible will override the compatibility mode setting. However, sometimes using the meta tag does not work because the mode has already been set by the time it encounters it. This is why I use the HTML header version, so the browser can enable standards mode early in the process.

What is the X-UA Compatible value for IE?

The X-UA-Compatible value determines Windows Internet Explorer’s document as follows: Table 1. X-UA-Compatible value. Document modes. IE=5. Quirks Mode. IE=7. IE7 mode. IE=8.

Why is my meta tag not working with IE11?

If you currently use the x-ua-compatible header to target a legacy document mode, it’s possible your site won’t reflect the best experience available with IE11. If you have already added the X-UA-Compatible meta tag and it’s not working as expected, there could be a couple of factors.