Is there any way to "force" Internet Explorer and render a site in "Standards" mode? Could you inform me of a reading corresponding to this subject?
Is there any way to "force" Internet Explorer and render a site in "Standards" mode? Could you inform me of a reading corresponding to this subject?
The simplest way, not only in IE but in any browser, is to use the HTML5 doctype at the top of your document:
<!DOCTYPE html>
In some situations, browser compatibility mode may be enabled by default.
I do not know if it's just the company I work for, but here the intranet sites are loaded in compatibility mode by default, even though the doctype is set correctly.
To force IE to render the page in "Standards" mode, even if the option to use compatibility is enabled on the client, use the meta tag / headerX-UA-Compatible
:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" >
The IE=Edge
option forces you to use the latest standards.
More information about the available options can be found here .
Complementing the above responses, there may actually be several reasons that lead to a site not being displayed in standards mode. Among them we have:
<!DOCTYPE html>
X-UA-Compatible
with content having value for a particular document other than the Edge (eg IE8, IE9, etc.) Microsoft makes dev.modern.ie the tool Site scan that allows you to analyze your site and point out possible problems and suggestions for improvement. There you can find solutions to update your site and ensure that it will be viewed using the document mode Edge.
For more details, on this link