Imagine a scenario where there are numerous divs in an HTML document, like the three examples provided below:
<div id="1">
<p>hi</p><p>Peter</p>
</div>
<div id="2">
<p> hola</p><p>Peter</p>
</div>
<div id="3">
<p>kaixo</p><p>Peter</p>
</div>
Is it possible to create a CSS3 selector that can target all <p>
elements within a specific <div id="x">
?
Share your insights on whether CSS3 supports this feature. Thank you!