Support for standardized HTML and CSS in major web browsers has improved significantly, but the large body of legacy documents which rely on the quirks of older browsers represents an obstacle for browser developers, who wish to improve their support for standardized HTML and CSS, but also wish to maintain with older, non-standardized pages. Additionally, many new web pages continue to be created in the older fashion, since the compatibility workarounds introduced by browser developers mean that an understanding of standardized methods is not strictly necessary.
To maintain compatibility with the greatest possible number of web pages, modern web browsers are generally developed with multiple rendering modes: in "standards mode" pages are rendered according to the HTML and CSS specifications, while in "quirks mode" attempts are made to emulate the behavior of older browsers. Some browsers rendering engine, or Internet Explorer 8 in strict mode, for example) also use an "almost standards" mode which attempts to compromise between the two, implementing one quirk for table cell sizing while otherwise conforming to the specifications
Quirks mode and strict mode are the two ’modes’ modern browsers can use to interpret your CSS.When Netscape 4 and IE 4 implemented CSS, their support did not match the W3C standard. Any websites rendered correctly in the various browsers, web developers had to implement CSS according to the wishes of these browsers. most websites used CSS in ways that didn’t quite match the specifications. when standards compliancy became important browser vendors faced a tough choice. Moving closer to the W3C specifications was the way to go, but if they would just change the CSS implementations to match the standards perfectly, many websites would break to a greater or lesser extent.
How to trigger quirks mode
Some doctypes or the inclusion of an
In IE 7, an
1.
2.
3.
Quirks mode in IE 7 can also be triggered when coding HTML 4.01 documents. Inserting a comment before the DTD will trigger this backwards compatible mode in both IE 6 and IE 7.
1.
2.