The key thing is that you can only use an ID name once in a HTML/XHTML document as opposed to a class which you can use multiple times.
In your CSS, you must represent the ID name with a starting pound (#) sign and a class with a starting period (.)
/* an id */#content { font-size: 14px;}/* a class */.blogDate { color: #333;}
Another thing is that an element can have multiple classes.
<span class="right big">This text is aligned right and big</span>