On Mon, Jul 19, 2010 at 8:15 PM, Chris Blake <ch...@3pointdesign.com> wrote: > Really for this because it is only appearing once for now I should use > ID - but there's a good chance I may use it again later on this page - > so class for now is OK?
I like to treat class and id semantically -- or at least according to my understanding of what that means. ID is properly used on elements (div, etc) that are unique. Class is used with elements that are categorical or a "class" in the mathematical and programming sense. For me an ID is something like header, footer, masthead, basically anything that makes sense as unique. If I happen to have a page for which I currently only have one newsitem. I will still use class. Simply because to me a page could naturally have more than one newsitem. I don't base the notion of ID simply on the fact of there being only one element of that type currently. I base it on "there should rightfully be only one." This is how I go about it. As they say "your mileage may vary." Regards, Claude Needham ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/