2
Is there any way to "force" Internet Explorer and render a website in "Standards" mode? Could you give me some reading on this subject?
2
Is there any way to "force" Internet Explorer and render a website in "Standards" mode? Could you give me some reading on this subject?
3
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>
1
In some situations, browser compatibility mode may be enabled by default.
I don’t know if it’s just the company I work with, but here the intranet sites are loaded in compatibility mode by default, even if the doctype is set correctly.
To force IE to render the page in "Standards" mode, even if the compatibility option is enabled in the client, use the meta tag/header X-UA-Compatible
:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" >
The option IE=Edge
force to use the latest standards.
More information on available options can be found here.
0
Complementing the above answers, there may actually be several reasons why a site might not be displayed in standard mode. Among them we have:
<!DOCTYPE html>
X-UA-Compatible
with content having value for a particular mode document other than Edge (eg. IE8, IE9, etc).Microsoft makes available through 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 it will be viewed using the Edge mode document.
For more details on this link I hold that subject.
Browser other questions tagged internet-explorer
You are not signed in. Login or sign up in order to post.