← Back to pseudo-classes
CSS Pseudo-class / Element
:where()
LogicalSame as :is() but with zero specificity, making it easy to override.
Syntax
:where(selector1, selector2) { }Example
:where(h1, h2, h3) { margin: 0; }Common use cases
- CSS resets and base styles
- Applying default styles that are easy to override
- Utility classes with low specificity
Practical developer insight
:where() is perfect for base/reset styles — its zero specificity means any other rule will override it without needing !important.