An id can only be used once on a page and is generally used to identify structural elements ie:
div id="header" whereas a class can be used multiple times ie: p class="news" ul class="itemlist" ...pretty basic stuff, best to get a good css book and study it well. On 11/05/06, Anthony Papillion II <[EMAIL PROTECTED]> wrote: > > Hello Everyone, > > I'm fairly new to CSS and brand new to the list (just joined today). I was > going through a CSS tutorial and came across an subject I'm not sure I > fully > understand. ID vs Class. > > As I interpret it, a class can only be used within the HTML element it is > linked to (i.e.<p class="yadda">) while ID can be defined and used with > *any* HTML element (i.e I could use <p id="header"> then also use <tr > id="header">). Am I interpreting this correctly or am I missing something > important? > > Thanks! > Anthony > > > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > -- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon! ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
