You can use some of the rules from XHTML to form a kind of "personal best practice" technique to help you (and others after you) to migrate and maintain code into the future. I have chosen the following to guide my markup (regardless of whether I am coding for HTML or XHTML)...
- use only lower case for all my tag names
- always close a tag that I have opened (or add a / to the end of the tag that doesn't have a natural close tag, like hr, br, input, img)
- avoid using any style properties inline (move them to a style sheet)
- always use a doctype
They are fairly simple, and purely a personal guide. I have similar "rules of thumb" for server-side code, for javascript and for css. If nothing else it means it's easier to transform into something else later on (because I've stuck to a consistent style).
Anyway, that's my 1p on the subject.
Cheers,
Jeff
NB: In New Zealand they dropped the 1cent and 2cent coin years ago... and they are now planning to drop the 5cent coin. So if you are ever posting from NZ your input will be worth 10cents! Current exchange rates would mean that a NZ post is worth more than that of any other country!
[tt]Jeff's Page [/tt]
[tt]@[/tt][tt] Code Couch
[/tt]