Link to sectionExample

HTML

<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Child_selectors -->

<div class="divclass">
  <span class="spanclass">Span #1, in the div.
    <span="betterspanclass">Span #2, in the span that's in the div.</span>
        <span="betterspanclass">Span #3, in the span 1.</span>
  </span>
</div>
<span>Span #4, not in the div at all.</span>

CSS

.divclass > .betterspanclass {
  background-color: red;
}