O'Reilly logo

Beginning CSS: Cascading Style Sheets for Web Design, Second Edition by Richard York

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Browser Rendering Modes

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

HTML 4.0

HTML 4.0 Transitional DTD without DTD URL

Q

Q

Q

Q

Q

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">

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">

HTML 4.0 Strict DTD without DTD URL

S

S

S

S

S

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

HTML 4.01 Transitional DTD with DTD URL

S

S

A

S

S

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required