Prev | Current Page 58 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

Browsers also choose quirks mode if the doctype declaration is missing
altogether??”which used to be very common??”or is malformed.
What Is CSS?
The Ultimate CSS Reference 20
If both an FPI and a correct FSI are present, browsers with two layout modes choose
their standards mode. Browsers with three layout modes will examine the DTD
reference before committing to a choice. Generally, the DTDs for HTML 4.0 Strict,
HTML 4.01 Strict, and XHTML 1.0 Strict trigger standards mode. The corresponding
Transitional DTDs trigger almost standards mode for a text/html MIME type.
Internet Explorer 6 uses a very primitive form of doctype sniffing, which presumes
that the doctype declaration is the very first line in the document. An SGML
comment before the doctype declaration will trigger quirks mode, as will an XML
declaration before an XHTML doctype??”even XHTML 1.0 Strict. The following
declaration will trigger quirks mode in IE6 (but not IE7) if served as text/html:



Pages:
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70