The Skinny on Doctypes
Tuesday Nov 25 2008
The skinny doctype
<!doctype html>
There is really, absolutely no reason you need the rest of the doctype in your declaration unless you're validating code. Furthermore, it does not mean that your page is even invalid. In the end, it puts your webpages into standards mode, which is what really matters. (Plus it's easy to memorize ;)
Try it out. It will fix your box model in IE6 and clobber all those other funny gotchas when you're in quirks mode. Cheers.
Update: David was kind enough to share his results using the skinny doctype on his blog. The results, as expected, keep your browser tame.
recent
- Matador: The Obvious MVC Framework for Node
- Sandboxing JavaScript
- Crouching Ender, hidden command
- Ender.js - The open submodule library
- Qwery - The Tiny Selector Engine
- Klass
- Smallest DOMReady code, ever.
- $script.js - Another JavaScript loader
- About that slowness on Twitter...
- Autocomplete Fuzzy Matching
- JavaScript Cache Provider
- JavaScript Animate
- Asynchronous method queue chaining in JavaScript
- Something changed
- Unofficial Twitter Widget Documentation
i am dustin diaz

