HTML & CSS · Junior · Question 65 of 75
Which element does h2 + p select?
- ✓Correct answer: A
<p>that immediately follows an<h2>sibling - 2Every
<p>inside an<h2> - 3Both
<h2>and<p>elements
Explanation
+ is the adjacent sibling combinator. h2 ~ p (general sibling) matches all following <p> siblings, not just the first.