Chowky 覺得這篇文章講的不錯,可以參考一下
1. Strict DOCTYPE
2. Character set & encoding characters
3. Proper indentation
4. Keep your CSS and JavaScript external
5. Nest your tags properly
6. Eliminate unnecessary divs
7. Use better naming conventions
8. Leave typography to the CSS
9. Class/id the <body>
10. Validate
11. Logical ordering
12. Just do what you can
Source: http://www.smashingmagazine.com/2008/11/12/12-principles-for-keeping-your-code-clean/


Recent Comments