On Thu, 10 Mar 2005 10:32:29 -0500, Sarah Atkinson [EMAIL-REMOVED]> wrote:
> I don't know a whole lot on this--just enough to get by with a clue.
> I haven't seen a good discussion about it and I feel this is kind of important so I figured I
would try to get a discussion going on the difference between IDs and Classes. Their uses,
differences and benefits over the other.
> I know some of you probably know of or maybe even written some great articles on them (points to
Eric) so go ahead and start posting links.
There are no benefits to using one vs. the other, they both have their
role in web design. They can and should be used in conjunction with
each other to serve your interest best.
There are specific uses for both however.
ID's are unique, there can only be a single instance of an id per
page. Meaning every id on the page has to be unique. Whereas classes
are reusable as many times as you want on the page.
ID's have a higher specificty in CSS than does a class. ID's should
be used to identify unique areas or things on your page, whereas
classes define a set of things that all have the same style.
A decent article here :
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/