View Single Post
11-23-2007, 03:53 PM
#2
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

You use .class when you have something like this:
Code:
<a href="#" class="class">link</a>
You would use .class to select that using CSS. For #id's you would select those by using:
Code:
<a href="#" id="id">link</a>
A div is used to collectively wrap around several elements where needed. Good examples are sidebars, wrappers, and sometimes footers. Don't overuse them though. As for spans, you should really only use those when you have to style text inside a p tag (or other tag) differently than the rest of the text in that tag.