Tantek Çelik of Technorati, Microsoft, and W3C fame published a great article a few weeks back on how to create and serve better XHTML in eight easy steps. I missed this when it first came out, so maybe you haven’t seen it either. It’s all great stuff in any case, and eminently practical, unlike some others out there on the web. Anyway, enough bitterness; Tantek’s thoughts are more interesting:
- Validate your web pages.
- Eliminate layout tables and spacer gifs.
- Get rid of meta tags for keywords.
- Use meaningful CSS class names, and don't tie them directly to your presentation.
- Get rid of useless whitespace in your code [aaron: it bugs me when outputted HTML is not pretty-printed with proper spacing and tabbing. I go through a fair amount of pain to make sure that the stuff I create at least looks tolerable (that is, when I'm not using templates ;-)].
- Use rel and hreflang for localized content.
- Cut out commented markup on the server side.
- Add an hcard to your site [aaron: not that Tantek's biased about this one, or anything ;-)].