3 ms·
In my experience, styles that are applied directly to elements cause more problems than they solve. Outside of a minimal reset, and a few general elements like
by rralian 14y ago
In my experience, styles that are applied directly to elements cause more problems than they solve. Outside of a minimal reset, and a few general elements like h1, h2, etc., I try to avoid applying styles to base elements. I have yet to see any real-world problem with classes. And I really don't understand why "classitis" is a concern for anybody.
- heydonworks 14y agoWhat is a style "applied directly" to an element if not a class? It's written on the element itself. 'Classitis' is certainly not a concern for parsers because they do not know it is going on. Then again, that's my point.