:where
:where is a CSS pseudo-class in the Pseudo-classes category. Like :is() but with zero specificity. The syntax is :where(<selector-list>). A typical example: :where(h1, h2, h3) { color: #333; } It is commonly applied to markup such as <div class="demo">Sample</div> Browser support: Chrome 88+, Firefox 78+, Safari 14+, Edge 88+. A close relative is :hover, which applies styles when the user hovers over an element with a pointing device. A close relative is :focus, which applies styles when an element has received focus. A close relative is :active, which applies styles while an element is being activated (clicked). More about this category: CSS pseudo-classes for targeting elements based on state or position. Related Pseudo-classes entries: :hover, :focus, :active, :visited, :link, :focus-within, :focus-visible, :target. This page is part of the free CSS Reference documentation covering 841+ properties, selectors, functions, and at-rules, each with syntax, values, examples, and browser support.