Re: ID vs CLASS?

by "rudy" <r937(at)interlog.com>

 Date:  Fri, 28 Sep 2001 20:44:10 -0400
 To:  <amcbainezzell(at)alum.mit.edu>,
<hwg-techniques(at)hwg.org>
  todo: View Thread, Original
> Does anyone here know of an explanation of when/why
> to use CLASS vs ID for assigning styles to an element?

class is plural -- assign it to as many of the same element, or even
different elements, as you like

id is singular --"results are unpredictable" if you assign it to more than
one element

> Is there a difference in the types of attributes that can
> be applied using each approach?

no

could be wrong, though

but i'm pretty sure everything the one can have, the other can too


rudy
http://rudy.ca/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA