SMACSS, Semantic Class Names and Nested Elements
问题 I've just read Scalable and Modular Architecture for CSS and it's got me thinking about a few things. Snook's two principle tennets are: Increase the semantic value of a section of HTML and content Decrease the expectation of a specific HTML structure So this means using semantic class names rather than relying on unsemantic element types for targeting. For example rather than targeting .someClass h5 , I might target .someClass-title instead so that if the h5 is swapped out for something else