Which of the following CSS combinators targets a direct child element?
- *
- +
- >
- ~
The ">" combinator is used to target a direct child element, ensuring that styles are applied only to the immediate child and not to nested descendants.
Loading...
Related Quiz
- Which CSS property defines the number of times an animation should run?
- How can you target an input element in CSS based on its validation state?
- You're building a website's header and you want it to stay at the top of the viewport when users scroll. Which positioning property would you use?
- If you want an animation to run indefinitely, which value would you set for the animation-iteration-count property?
- Which CSS property is used to vertically align inline elements or inline-block elements?