HTML Coding Rules : Rule 2
TAGS
< html>< head>< body>...
All tags should be lowercase. Call it the lazy man rule of coding, but I love this rule. It’s one of a handful of rules for being XHTML 1.0 compliant.
Now you’re thinking, what the heck?! HTML (w3) standards was a mess, now there’s XHTML?? Yes, a bunch of whacked out developers got locked in a room in the year 2000 and came up with XHTML. It’s just a hybird of XML and HTML rules.
HTMLTree comment: Since we’re on the topic, here’s a quick rundown of other XHTML rules…
1. Lowercase tag names
2. Close all tags (e.g. < br />)
3. Attribs must be in quotes (e.g. < table width="20">)
4. Attrib shortcuts for ‘selected’ and ‘checked’ must be defined (e.g. < input type="checkbox" checked="checked">
5. The full XHTML 1.0 list is here. Good luck reading that in one sitting!
via [HTMLTree]
