4 ms·
> HTML,CSS, and Javascript separate the layers of a web app fairly nicely. Except they don't. Most devs aren't even aware of what divs they are using for pure
by jiggunjer 9y ago
> HTML,CSS, and Javascript separate the layers of a web app fairly nicely.
Except they don't. Most devs aren't even aware of what divs they are using for pure styling vs semantically correct ones. They think all the html they write is by definition semantic.
Then there are the less frequent but even more insidious cases where css is used for content.
- oblib 9y agoDoes that really make a difference? Seems to me that's a feature that's generally described as "more than one way to do it" and the goal is getting the app working and shipped not to appease some outside critic's sense of semantics.
- jiggunjer 9y agoStyling separable from content is the direction W3 wants to go. So being aware and adhering as much as possible should improve performance and long-term maintenance burden. I agree the tradeoff probably isn't worth the extra time needed to carefully structure your html and do css acrobatics. I just get triggered when someone claims the holy trinity idea works good with html/css/js. It doesn't, but that's OK.