On 5/23/05, jlfx intermedia, llc <[EMAIL PROTECTED]> wrote:
> 
> Thank you all for the information. Silly question, in what instance would
> using an ID tag make sense? It would seem savvy to define classes and just
> them as needed where ever.

ID is an attribute,  not a tag. An ID makes a lot of sense when you
want to define an element as unique in the document, say the
navigation or  the header.

Classes are to be used in reoccuring elements, like a product shot for example. 

Another benefit of IDs is their specificity, which is higher than that
of classes.

An element that  has an ID is also a lot easier to reach when you want
to use DOM/JavaScript to add extra behaviour to the document.

Generally it allows you the structure of the document more logically,
one header, one main navigation , one content part, one footer.
Classes would make it appear as if there could be more of  each.

-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/
______________________________________________________________________
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/

Reply via email to