Question · HTML and CSS course · Module 9: Modern CSS
The :has() Pseudo-class in CSS
What does the :has() pseudo-class do in CSS?
Answer options
- Hides elements that have children
- Checks if an element has a specific property
- Verifies if an element exists
- Selects an element if it contains a specific child
You can check the correct answer by solving this task in the CodeWorlds game.