Difference between class and id

Hello:

It's just a little question that's been around because I just discovered the
power of <div>.
What's the difference between using <div id=smth> and <div class=smth>
(and <div id=smth1 class=smth2>)?
Are they supposed to have different content?

Thank you all.
Gabriel.

Received on Monday, 27 May 2002 11:08:43 UTC