To apply a style to only the direct children elements of a container, you would use the ________ combinator.

  • adjacent sibling combinator
  • child combinator
  • descendant combinator
  • general sibling combinator
The correct answer is the child combinator (>), which selects only the direct children of a particular element. This ensures that the style is applied exclusively to the immediate children of the specified container, not including nested elements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *