Skip to notes.The slides are typically visually-oriented graphics, but the notes contain enough information to understand the tutorial.
Slide

'Standards' vs 'Quirks' modes

Current mainstream browsers may display an HTML file in either standards mode or quirks mode. This means that different rules are applied to the display of the file, one conforming to the W3C standards interpretation of expected behavior, the other to expectations based on the non-standard behavior of older browsers.

The screen captures below illustrate some of these differences.

A document rendered in standards mode.The same document rendered in quirks mode.
Picture of the same file displayed in quirks mode.Picture of a flie displayed in standards mode.

Differences illustrated above include the following:

The two pictures show two pages with exactly the same markup and CSS styling. The only difference between the source of the two files is that the one on the left has a DOCTYPE declaration at the top, and the other doesn't. A file with an appropriate DOCTYPE declaration should normally be rendered in standards mode by recent versions of most browsers. No DOCTYPE, and you get quirks.

Browsers that switch in this way between standards and quirks modes are often said to do 'DOCTYPE switching'.


Version: $Id: Slide0180.html,v 1.2 2006/02/02 07:54:31 rishida Exp $