The Different Ways to Select in CSS

Daniel Schwarz
2026-03-05T14:01:04.000Z

Sure, we can select the element in CSS with, you know, a simple element selector, html. But what other (trivial and perhaps useless) ways can we do it? The Different Ways to Select in CSS originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.