Suppose I have the below HTML structure:
<div id="div1">
....
<span class="innercontents">...</span>
....
</div>
Is it possible to target only the child elements of a specific parent ID?
For example, could I use this CSS rule?
#div1 span
{
...
}
Thank you for any assistance provided.
I apologize for any confusion caused. To clarify, in the given example, my intention is to solely select the span tags that are nested under that particular