OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
class VS id what is the difference
This page's ID:
10895
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Yup, we had a good discussion about it in the thread Slime linked to. As to [i]when[/i] you would use classes and IDs, well, if you're only going to have a single element of that type on the page (for example, a "content" or "body" div), you might want to go with an ID. If it's a style that you're going to use more than once (for example, a particular style for the first paragraph in every section, or a style for all your H2 headers), then you'd obviously want to go with classes.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »