ID: Layout purposes. Each ID is unique, meaning it can only be used once in your page, why they are used for layout. For example,
Code:
<div id="maincontent">
block level or inline elements in here
</div>
Classes: can be used multiple times for formatting text. span would also work, example:
Code:
<span class="something">some text</span>
To do a design I would recommended sketching a draft of the general layout. Then examine what ID's would you need. If you wanted a two layout with a repeating background then this would work:
Code:
<div id="leftside">
navigation here
</div>
<div id="maincontent">
content in here
</div>
Examining what you need first, then desigining it is the best way to start. Additionally, design your pages in parts, and develop in Firefox, then after each change, make sure Firefox and IE agree, that way, you won't develop 80 styles that will only work right in one browser, not that I have done that before
Good luck.
Bookmarks