6 ms·
My plan has always been: * keep making tags lowercase * keep quoting attribute values * keep closing tags after I open them (and properly nesting tags) * ke
by happenstance 17y ago
My plan has always been:
* keep making tags lowercase
* keep quoting attribute values
* keep closing tags after I open them (and properly nesting tags)
* keep using the closing slash for standalone tags
* keep calling it text/html (mime type)
* keep using UTF-8 encoded Unicode by default
* keep not using xml namespaces
* keep forgetting to use the DOCTYPE declaration
* and start carefully using some of the neat new tags in html5
- simonw 17y agoForgetting to use a DOCTYPE is a bad idea, since it throws most browsers in to "quirks" mode meaning they won't render things according to the published standards. That makes debugging problems a whole lot harder since you first have to work out if the bug relates to quirks mode v.s. standards mode, and quirks mode problems are far less widely documented.
- happenstance 17y agoGiven my html as described above, what would you recommend to use for the DOCTYPE line?
- allbutlost 17y ago<!DOCTYPE html> easy to remember and triggers standards mode
- happenstance 17y agoLooks redundant, but easy. Thanks.