Why does IE9 opens in Document Mode as IE7 standards?

Justin John picture Justin John · Dec 19, 2012 · Viewed 89.1k times · Source

When I open a webpage in IE9 with DOCTYPE as

<!DOCTYPE html>

It opens Document Mode as IE7 standards.

I need default IE9 standards on opening the page.

How to correct this document mode problem?

A screenshot of how it comes in IE browser developer tool

enter image description here

Answer

Radim K&#246;hler picture Radim Köhler · Dec 19, 2012

Try this answer: https://stackoverflow.com/a/13524518/1679310.

Summary, give the IE browser more information in the meta tag:

<!DOCTYPE html>
<html>
  <head>
    <title>My Web</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

Edit Note: As Olly Hodgson mentioned, the proper option is IE=edge, as currently stated in the above snippet. Below is the original, also working version:

   <meta http-equiv="X-UA-Compatible" content="IE=100" />