At 2:40 PM -0400 5/23/05, [EMAIL PROTECTED] wrote:
Some things in their code I don't understand. What's the relationship
between the ID and the class?
ID can only be applied to a single tag on a page. Class can be
applied to any number of tags.
A clarification: a given ID value can only be given to a single
element on a given page. Thus, only one element can have an ID of
"title". You're free to ID every element in the page, so long as
every ID value is unique. (It isn't necessarily recommended, but
you're still free to do it.)
Class values do not have to be unique within a document. Thus,
several images could be classed "illustration" while a few others
were classed "figure". And so on.
--
Eric A. Meyer (http://meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
-- Martina Kosloff (http://mako4css.com/)
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/