<!DOCTYPE html>
<style>
  div#a { background-color: purple; }
  div#b { background-color: blue; }
</style>
<div id="a"><p>This should be purple.</p></div>
<div id="b"><p>This should be blue.</p></div>