another difference between classes and ids are that IDs have a higher specificity than classes. If a class's properties conflicted with an ID's properties, the ID would take precedence over the class.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris 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 something an ID?? I know these facts, Only 1 usage per ID per page... Classes are unlimited, and you can assing Multiple classes to each entity too... So... Why? -- ------------------------ Chris Stratford [EMAIL PROTECTED] http://www.neester.com ------------------------ -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 12/01/2005 ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004 ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************