← Back to pseudo-classes
CSS Pseudo-class / Element
:is()
LogicalMatches elements that match any selector in a given list, reducing repetition.
Syntax
:is(selector1, selector2) { }Example
:is(h1, h2, h3) { color: #3dffa0; }Common use cases
- Grouping multiple selectors cleanly
- Reducing repetition in CSS
- Targeting multiple heading levels at once
Practical developer insight
:is() takes the specificity of its most specific argument — use :where() instead if you want zero specificity.