Question from the HTML5/CSS3 test

Which elements are selected by the CSS selector below : div + p, div ~ span { ... }

Hard

Which element the css selector below :

div + p, div ~ span {
    ...
}
<section>
    <div></div>     <!-- 1 -->
    <span></span>   <!-- 2 -->
    <p></p>         <!-- 3 -->
    <span></span>   <!-- 4 -->
</section>

Author: BenjaminStatus: PublishedQuestion passed 91 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!