Home › Forums › CSS › ‘DRY’ HTML vs OOCSS Approach? Better to have less HTML or CSS code? › Re: ‘DRY’ HTML vs OOCSS Approach? Better to have less HTML or CSS code?
I hear what you’re saying @Merri but when you look at companies like amazon, ebay, etc, where performance and management is crucial, HTML markup is less of a concern. (Their source code is shocking!)
I used to be like you, in fact, I still am. All my mark up is as semantic as can be, will only use a span/div unless there is no other HTML tag that accurately represents the content, however, I am starting to move away from being to anal about how clean my HTML markup is. Truth is, adding a load of classes doesn’t make your HTML any less semantic.
Look at the source code for this CSS Tricks home page for example. There are a load of divs, spans, multiple classes on elements and this isn’t even a huge site (in comparison to the above), yet would you say this site is un-semantic?