0

I have this HTML, valid for w3c:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="ISO-8859-1">
        <title>COMUNE DI MILANO</title>
    </head>
    <body>
        <h1>Ciao Mamma</h1>
    </body>
</html>

I don't know why IE Switch to compatibility mode. I found a meta tag that force the compatibility mode, but I want to know how to build a working HTML page..

Someone knows what will cause the switch? It could depends on Apache version / configuration?

Thank's a lot, Davide.

Davide
  • 103
  • 3
  • 9
  • ISO-8859-1? In 2013? :( – Quentin Feb 13 '13 at 11:32
  • possible duplicate of [CSS renders differently on web server than on development environment](http://stackoverflow.com/questions/1867383/css-renders-differently-on-web-server-than-on-development-environment) – Quentin Feb 13 '13 at 11:32
  • You'll right Quentin, it's a test, I usually use UTF-8. I set charset to ISO-8859-1 because I'm trying to discover the reason and ISO match with the apache default on a test machine here in office. – Davide Feb 13 '13 at 12:02
  • Thanks Quentin for the link, unfortunately I explored the http headers on IE 9, but I didn't see anything strange... – Davide Feb 13 '13 at 15:28

1 Answers1

0

Try check the headers that are sent along with it, see if there's a X-UA-Compatible header that's set to something undesirable.

Seer
  • 5,226
  • 5
  • 33
  • 55
  • Unfortunately there are no header set on apache, using this key and this does not result on http headers on the response... mumble mumble... – Davide Feb 13 '13 at 12:20
  • You might want to check this question out: http://stackoverflow.com/questions/3726357/why-does-ie9-switch-to-compatibility-mode-on-my-website – Seer Feb 13 '13 at 15:58