Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forcing Internet Explorer 9 to use standards document mode

How can I force Internet Explorer 9 to use standards document mode? I built a website and I'm finding that IE9 uses quirks mode to render the website pages. But I want to use standards mode for rendering.

like image 243
MaxRecursion Avatar asked Jun 11 '12 06:06

MaxRecursion


People also ask

How do I change the document mode to Internet Explorer 9 standards?

Change the Document Mode to Internet Explorer 9 Standards and try to view the content again. To change the Document Mode, press F12, click Document Mode: , and then select Internet Explorer 9 Standards."

How do I change the document mode in Internet Explorer?

In your Internet Explorer web browser, press F12 to open the Developer Tools window. Click Browser Mode and select the version of your web browser. Click Document Mode, and select the Internet Explorer standards for your Internet Explorer release.


1 Answers

 <!doctype html>  <meta http-equiv="X-UA-Compatible" content="IE=Edge"> 

This makes each version of IE use its standard mode, so IE 9 will use IE 9 standards mode. (If instead you wanted newer versions of IE to also specifically use IE 9 standards mode, you would replace Edge by 9. But it is difficult to see why you would want that.)

For explanations, see http://hsivonen.iki.fi/doctype/#ie8 (it looks rather messy, but that’s because IE is messy in its behaviors).

like image 123
Jukka K. Korpela Avatar answered Sep 29 '22 11:09

Jukka K. Korpela