News for hackers. Stuff that matters.
Re:“Tomato” versus “#FF6347” – the tragicomic history of CSS... by lmm on Friday October 16, 2015 @02:58PM (#10401356)
I already build up my HTML programmatically from reusable components, following DRY (Don't you?). That means the markup for what it means to be e.g. a paragraph heading is already in one place. It's no trouble to style it there, with a font tag, and if I want to change it then I can change it there. And if I want to abstract out a particular piece of styling and reuse it across several components, it's just code, I factor it out the same way I would anything else.

So yes, seriously, it's simpler than using a CSS selector.

There are no comments on this comment yet.