Re: Difference between class and id

by "Ineke van der Maat" <inekemaa(at)xs4all.nl>

 Date:  Tue, 28 May 2002 21:59:39 +0200
 To:  "Scott Norman" <Mokele(at)mac.com>,
<hwg-style(at)hwg.org>
 References:  mac
  todo: View Thread, Original

Hi Scott,

I thank you for your explanation about the differences between <id> and <class>

As some time earlier on this list discussed, you gave with your examples  about
div and span  exactly also an example  why span must be avoided as much as
possible. Because it is often a result of not well coding. Look what I did here.
I removed  only your span tags in one of your examples  and the result is the
same.  But your coding is much better readable when you want to change something
later. And is the result not the same?

> <!-- English messages -->
> <P id="msg1" class="info" lang="en">Variable declared twice</p>
> <P id="msg2" class="warning" lang="en">Undeclared variable</p>
> <P id="msg3" class="error" lang="en">Bad syntax for variable</p>

greetings
Ineke van der Maat

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