4 ms·
Awesome list! Thanks for providing it. It would be nice to add a bit more of an explanation for some of these things. eg: - There's a bold warning about float
by pgl 13y ago
Awesome list! Thanks for providing it.
It would be nice to add a bit more of an explanation for some of these things. eg:
- There's a bold warning about float elements with display: block set - "Do not set both". Why is this so important?
- "Skipping the doctype can cause issues with malformed tables, inputs, and more" - some examples of what could go wrong would be really handy here. Or a link to a more in-depth explanation?
In general some more links would be great.
- aestra 13y ago> some examples of what could go wrong would be really handy here. One small example that I've seen go wrong, elements don't center with CSS if you skip the doctype. Seems to ignore margin-left and margin-right. Omitting the doctype basically sends the browser into "quirks mode" and then the page is rendered with old browser rendering bugs. http://en.wikipedia.org/wiki/Quirks_mode http://en.wikipedia.org/wiki/Quirks_mode
- paulirish 13y agoA partial list of the random bugs you'll find in Quirks Mode: http://quirks.spec.whatwg.org/ http://quirks.spec.whatwg.org/ It's a bad scene. Avoid it at all costs.