http://learn.shayhowe.com/html-css/coding-practices

LESSON 10 Coding Practices & Additional Resources
HTML & CSS 好的 Coding 方式

  1. HTML Coding Practices
  1. Write Standards Compliant Markup
  1. Make Use of Sematic Elements

  1. Use Practical ID & Class Values

  1. Provide Proper Attributes for Images & Links

  1. Seperate Content from Style
  1. Avoid a Case of Divitis

  1. Continually Refactor Code
  1. CSS Coding Practices
  1. Organize Code with Comments

  1. Indent Selectors
  1. Group & Align Vendor Prefixes

  1. Write CSS with Multi-Line Spacing
  1. Modularize Styles for Reuse
  1. Create Proper Class Names
  1. Build Proficient Selectors

  1. Use Specific Classes When Necessary
  1. Use Shorthand Properties When Available
  1. Drop Unit Type from Zero Values