Educational - CSS :is() and :where()

They allow us to write selectors in a more efficient way. It reduces the repetition of parts of comma-separated selectors.

They work with classes, tags, ids, etc
If you add a broken selector the whole section is broken. With :is() this doesn't happend.

Extra Information:


:is() and :where()

  • Is supported by all most used browser now.


:where()