CLASSes and ids
What are they?
Why do they exist??
Why should I use them???
Do they make my life easy????
<p>This is paragraph one</p>
<p>This is paragraph two</p>
<p>This is paragraph three</p>
<p>Ok, we should stop playing with paragraphs</p>
<p>No seriously</p>
<p>Damned you won't stop playing</p>
<p class="special">Wait, this seems different!</p>
<p class="special">Different again!</p>
<p id="awesome">ID?? This is new</p>
<p class="not_special">Different class? Class apart?</p>
<h1 class="special">Special Heading?</h1>
p.special { color: black; }
.special { color: black; }
h1.special { color: black; }
p#awesome { color: black; }
#awesome { color: black; }
<p class="pig">CSS guinea pig paragraph</p>
p { color: black; }
.pig { color: blue; }
p.pig { color: green; }