Q
What does the selector div > p select?
-
A
elements that are direct children of a
-
B
All elements anywhere inside a
-
C
Every that follows a
-
D
A immediately after a
Correct Answer:
A. <p> elements that are direct children of a <div>
Explanation:
div p selects descendants at any depth, h1 + p selects the adjacent sibling, and ~ selects general siblings.