I have something like this
<div id="div1">
<span class="label">some text</span>
</div>
<div id="div2">
<span class="label">some text</span>
</div>
I want to select a given span through id and then throu class. Something like #div1.label or #div2.span but this way doesn’t work. How I can?
Use a space to indicate the element is a child:
#div1.labelwould select an element with id div1 and a class of label.