DEV Community

Discussion on: So, how many of you respect CSS as a programming language?

Collapse
 
moopet profile image
Ben Sinclair

I'm not sure what you're getting at.

You've very deliberately used the word "respect" several times, and phrased the response choices in a leading manner - it's a dark pattern ("confirmshaming") meant to push people away from the negative response, and it'll skew your results.

CSS has some features of a programming language and some of a descriptive one.

In addition, the way people use CSS is often through a higher-level abstraction, like a framework (e.g. Bootstrap), a preprocessor (e.g. Sass), CSS-in-JS (e.g. React) or through applying attributes directly to DOM elements in Javascript rather than writing a separate stylesheet.

It's enmeshed in web development, to the point that a lot of frameworks use HTML elements attributes to describe the page look and feel and plug in a pre-made CSS library instead. I guess you could say that non-semantic styling is disrespecting CSS if you were stretching for a soundbite.