-1

Assume that the evergreen, fruit, and leaf classes are not used elsewhere on the page. What selector will select the apple tree, but none of the others?

<ul id="forest">
 <li class="evergreen"><a>pine</a></li>
 <li class="evergreen"><a>lodgepole</a></li>
 <li class="evergreen fruit"><a>holly</a></li>
 <li class="leaf fruit"><a>apple</a></li>
 <li class="leaf"><a>oak</a></li>
 <li class="leaf"><a>maple</a></li>
</ul>
  • Is this some kind of homework assignment? – Sander Declerck Jan 31 '18 at 09:19
  • yes, it's homework assignent – Anirban Ghosh Feb 04 '18 at 06:59