locked
How to make the HTML page run with compatible mode in IE 11 by coding. RRS feed

  • Question

  • How to make the HTML page run with compatible mode in IE 11 by coding instead of by tool in the IE ,such as adding some code to the HTML.
    <html>
      <head>
        <meta charset=UTF-8>
        <title>Hello World!</title>
      </head>
      <body>
      </body>
    </html>



    Please click the Mark as Answer button if a post solves your problem!

    Thursday, October 22, 2015 6:08 AM

Answers

  • Hi,

    You can specify a meta tag to choose the exact type of Internet Explorer version you want to use.

    For example, for compatibility mode for Internet Explorer 9.

    <html>

    <head>

      <!-- Use Internet Explorer 9 Standards mode -->

      <meta http-equiv="x-ua-compatible" content="IE=9">

      <title>My webpage</title>

    </head>

    <body>

      <p>Content goes here.</p>

    </body>

    </html>

    Wish you have a nice day.

    Best Regards

    Simon


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Sunday, October 25, 2015 6:02 AM

All replies

  • Hi,

    You can specify a meta tag to choose the exact type of Internet Explorer version you want to use.

    For example, for compatibility mode for Internet Explorer 9.

    <html>

    <head>

      <!-- Use Internet Explorer 9 Standards mode -->

      <meta http-equiv="x-ua-compatible" content="IE=9">

      <title>My webpage</title>

    </head>

    <body>

      <p>Content goes here.</p>

    </body>

    </html>

    Wish you have a nice day.

    Best Regards

    Simon


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Sunday, October 25, 2015 6:02 AM