How do I force Internet Explorer to render in Standards Mode and NOT in Quirks?

This is the way to be absolutely certain : <!doctype html> <!– html5 –> <html lang=”en”> <!– lang=”xx” is allowed, but NO xmlns=”http://www.w3.org/1999/xhtml”, lang:xml=””, and so on –> <head> <meta http-equiv=”x-ua-compatible” content=”IE=Edge”/> <!– as the **very** first line just after head–> .. </head> Reason : Whenever IE meets anything that conflicts, it turns back to … Read more

How to tell if a browser is in “quirks” mode?

In Firefox and Opera you can determine if your browser is in “quirks mode” by checking page info. Using document.compatMode, will tell you the mode you are in with most browsers. In Chrome, Safari, and IE, run this javascript in the address bar: javascript:window.alert(‘You are in ‘ + (document.compatMode===’CSS1Compat’?’Standards’:’Quirks’) + ‘ mode.’) (note that you’ll … Read more

What is quirks mode?

you can read in this links : http://en.wikipedia.org/wiki/Quirks_mode http://www.quirksmode.org/css/quirksmode.html http://www.cs.tut.fi/~jkorpela/quirks-mode.html Modern browsers generally try to render HTML content according to the W3C recommendations. However, to provide compatibility with older web pages, and to provide additional “intuitive” functionality, all browsers support an alternative “quirks mode”. Quirks mode is not, however, a standard. The rendering of any … Read more