<p>Will be blue, because of selector specificity.</p>

<div class="second first">
</div>
body .first {
  background: blue;
}

.second {
  background: green;  
}

/* etc. */

div {
  width: 10em;
  height: 10em;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.