Forum Moderators: not2easy
You do _not_ want Quirks mode in a modern document.
Standards mode is the outright standard.
Almost standards mode is the halfway thing.
Both are usually workable although I like standards mode better (less guessing what the browsers will do).
Which of the modes they use depends on the doctype.
A list of doctypes you can use is at:
[w3.org...]
If you need to support IE6, don't use the xml preample (or anything else in front of your doctype) as it throws IE6 in quirks mode.
IE8 has a 4th mode: IE7 mode: emulating the bugs of IE7. I don't get why anybody wants that, but people do for some reason that's beyond me.
An overview of which doctype causes what mode in which rendering engine is at [hsivonen.iki.fi...] (scroll down for the table)
And then there is the HTML5 doctype: <!DOCTYPE html>
It should trigger standards mode, but I've not yet played with it myself.
Can someone explain it for me or point me to a good link that does?
Choosing the best doctype for your site [webmasterworld.com]
Why of us should NOT use XHTML [webmasterworld.com]