hwg-style archives | May 2002 | new search | results | previous | next |
Re: Difference between class and idby "Ineke van der Maat" <inekemaa(at)xs4all.nl> |
|
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