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:

ExperimentalPseudo-class

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()
 Syntax
Selectors Level 4:has( <relative-selector-list> )

Notes

  • 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