Problem Statement
Describe the different combinators in CSS.
Explanation
CSS combinators define relationships between selectors. A space indicates descendant, '>' means direct child, '+' selects the next sibling, and '~' selects all following siblings. These help in selecting elements based on their hierarchy in HTML.
Code Solution
SolutionRead Only
div + p { color: red; }Practice Sets
This question appears in the following practice sets:
