Chapter 11. Working with Browsers Part I: DOCTYPE Switching and Standards Mode
How do today’s browsers “know” when you’ve created a forward-compatible site? How can they display your standards-based site correctly when they must also do a decent job of supporting antiquated sites built with outdated methods?
The answer is that most modern browsers use our old friend the DOCTYPE, whose acquaintance we made in Chapter 6, to toggle between Standards mode (where your site works as W3C specs say it should) and backward-compatible Quirks mode (so named because old-school sites are authored to the quirks of variously incompatible browsers). If you want to control how the way your site looks and behaves, this chapter is for you.
To keep things interesting, ...
Get Designing With Web Standards, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.