Re: [WSG] Class -vs- ID

2005-01-13 Thread Chris Stratford
Wow thanks for the great responses people! Love this list :) Cheers, solved all my problems with that question :) Paul Novitski wrote: At 06:23 PM 1/12/05, Chris Stratford wrote: I was asked for the first time yesterday, what the big difference and advantage to using an ID over a CLASS was...

[WSG] Class -vs- ID

2005-01-12 Thread Chris Stratford
Just wondering. I was asked for the first time yesterday, what the big difference and advantage to using an ID over a CLASS was... I know why classes are good! What is the advantage of an ID over simply giving something an ID?? I know these facts, Only 1 usage per ID per page... Classes are

Re: [WSG] Class -vs- ID

2005-01-12 Thread Jeff Lowder - Accessibility 1st
IDs have higher specificity is another. You can link/anchor to them that way. Cheers Jeff On 13/1/05 1:23 PM, Chris Stratford [EMAIL PROTECTED] wrote: Just wondering. I was asked for the first time yesterday, what the big difference and advantage to using an ID over a CLASS was... I know

Re: [WSG] Class -vs- ID

2005-01-12 Thread Chris Stratford
BTW I know IDs are needed for LABELS and other FORM elements. :) Cheers Chris Stratford wrote: Just wondering. I was asked for the first time yesterday, what the big difference and advantage to using an ID over a CLASS was... I know why classes are good! What is the advantage of an ID over

RE: [WSG] Class -vs- ID

2005-01-12 Thread Alex Katechis
Stratford Sent: Wednesday, January 12, 2005 9:23 PM To: WSG Subject: [WSG] Class -vs- ID Just wondering. I was asked for the first time yesterday, what the big difference and advantage to using an ID over a CLASS was... I know why classes are good! What is the advantage of an ID over simply giving

Re: [WSG] Class -vs- ID

2005-01-12 Thread Patrick H. Lauke
Chris Stratford wrote: What is the advantage of an ID over simply giving something an ID?? No measurable advantage, but it's a question of principle and appropriateness: if something is unique (e.g. your page will only ever have one header, footer, main navigation bar, content area, etc), then

Re: [WSG] Class -vs- ID

2005-01-12 Thread Mordechai Peller
Chris Stratford wrote: What is the advantage of an ID over simply giving something an ID?? Besides the benefits of greater CSS selector specificity than classes and its use as a target for URLs, ids also convey a semantic value which is different than a class and can be referred to via

Re: [WSG] Class -vs- ID

2005-01-12 Thread John Horner
What is the advantage of an ID over simply giving something an ID?? My explanation for the existance of IDs in CSS is simply that if IDs are there to be used in HTML, then they need to be there in CSS too. In other words, if you're sitting there with your own HTML document and you're wondering

Re: [WSG] Class -vs- ID

2005-01-12 Thread Paul Novitski
At 06:23 PM 1/12/05, Chris Stratford wrote: I was asked for the first time yesterday, what the big difference and advantage to using an ID over a CLASS was... Chris, With regard to our intentions as scripters, what you and everyone else has said applies: ids are unique, classes are generic, and