Code: Use Descendant Selectors

From Chapter 7: CSS Optimization

Here is a minimalist example of a descendant selector:

<style type="text/css"><!--
    div.warning p{color:red;} /* descendant selector */
--></style></head><body>

<div class="warning">
    <p>Warning! Meltdown is imminent.</p>
</div>

The descendant selector in the preceding code (div.warning p) targets the paragraph element that is contained within the <div> element.