Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems like there's two wildly different ways that CSS gets used. In one style, a CSS class is a semantic category of things on the page, and the style sheet defines how it looks. In the other, a CSS class has no semantic meaning, and the style sheet defines a list of options to choose from. It's the difference between `<div class="user-comment>` and `<div class="bg-lt-gray-fg-dark-gray-bold-text">`.

The first type of CSS can be written succinctly, but the second cannot.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: