Click in order · HTML and CSS course · Module 9: Modern CSS

Building the :has() Selector

Arrange the :has() selector syntax for styling a parent that contains an image:

Items to click

  • :has(
  • > img
  • )
  • article

You can check the correct answer by solving this task in the CodeWorlds game.