As you saw in Chapter 7, the Document Type Declaration of the HTML or XHTML document can be used to trigger different rendering modes in the browser, which in turn affect the CSS features available to you to use in browsers like IE 6 and IE 7. The following table outlines the different document type declarations, and the rendering mode they invoke in the various browsers.
S = Standards mode
A = Almost standards mode
Q = Quirks mode
Doctype / Document | IE6 | IE7 | FF | O | S |
---|---|---|---|---|---|
Pre HTML 4.0 DTD | Q | Q | Q | Q | Q |
| |||||
HTML 4.0 | |||||
HTML 4.0 Transitional DTD without DTD URL | Q | Q | Q | Q | Q |
| |||||
HTML 4.0 Transitional DTD with DTD URL | S | S | Q | S | S |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |||||
HTML 4.0 Frameset DTD without DTD URL | Q | Q | Q | Q | Q |
| |||||
HTML 4.0 Frameset DTD with DTD URL | S | S | Q | S | Q |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd"> | |||||
S | S | S | S | S | |
| |||||
HTML 4.0 Strict DTD with DTD URL | S | S | S | S | S |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |||||
HTML 4.01 | |||||
HTML 4.01 Transitional DTD without DTD URL | Q | Q | Q | Q | Q |
| |||||
HTML 4.01 Transitional DTD with DTD URL | S | S | A | S | S |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |||||
HTML 4.01 Frameset DTD without DTD URL | Q | Q | Q | Q | Q |
| |||||
HTML 4.01 Frameset DTD with DTD URL | S | S | A | S | A |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | |||||
HTML 4.01 Strict DTD without DTD URL | S | S | S | S | S |
| |||||
HTML 4.01 Strict DTD with DTD URL | S | S | S | S | S |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |||||
XHTML 1.0 | |||||
XHTML 1.0 Transitional DTD without an XML Prolog | S | S | A | S | S |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtml1-transitional.dtd"> | |||||
XHTML 1.0 Transitional DTD with an XML Prolog | Q | S | A | S | S |
<?xmlversion="1.0"encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtml1-transitional.dtd"> | |||||
XHTML 1.0 Frameset DTD with a DTD URL | S | S | A | S | A |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtml1-frameset.dtd"> | |||||
S | S | S | S | S | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtml1-strict.dtd"> | |||||
XHTML 1.0 Strict DTD with an XML Prolog | Q | S | S | S | S |
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtml1-strict.dtd"> | |||||
Other | |||||
XML Documents | S | S | S | S | S |
No DOCTYPE | Q | Q | Q | Q | Q |
Unrecognized DOCTYPE | S | S | S | S | S |
18.227.102.34