Recently learned a good tip, not sure if this is generally known, but I don't see it mentioned often, so I'm posting it here for the benefit of all.
To give an element multiple classes, separate the classes with spaces:
<div class="important news">...</div>
<div class="important post">...</div>
Why? It can make CSS more efficient:
<style>
div.news{border:1px solid orange;padding:.5em;background:#cdc;}
div.post{border:1px dotted black;padding:.5em;background:#eee;}
.important{font:bold 120% sans-serif;color:red}
</style>
News and views of some obscure guy
To give an element multiple classes, separate the classes with spaces:
<div class="important news">...</div>
<div class="important post">...</div>
Why? It can make CSS more efficient:
<style>
div.news{border:1px solid orange;padding:.5em;background:#cdc;}
div.post{border:1px dotted black;padding:.5em;background:#eee;}
.important{font:bold 120% sans-serif;color:red}
</style>
News and views of some obscure guy