HTML & CSS · Junior · Question 64 of 75
What is the difference between .menu a and .menu > a?
- ✓Correct answer:
.menu amatches links at any depth;.menu > amatches only direct children - 2They are equivalent
- 3
>selects the parent of the link
Explanation
The space is the descendant combinator, > is the child combinator. Using > limits the reach of styles in nested menus.