CSS HTML Validator - The All-In-One HTML, CSS, Link, SEO, spelling, and Accessibility Checker
Home Help: has() CSS function

The has() Function

Additional links:


Selects an element if any of the selectors passed as parameters (relative to the :scope of the given element) match at least one element.

Syntax for has()
Selectors Level 4:has( <relative-selector-list> )


  • The :has() pseudo-class currently has limited or no support.

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem