W3C home > Mailing lists > Public > www-style@w3.org > May 2002

Difference between class and id

From: Gabriel <ghrivera@sinectis.com.ar>
Date: Mon, 27 May 2002 12:06:22 -0300
Message-ID: <002f01c20590$25bd7d00$43fff4d8@ahurman>
To: <hwg-style@hwg.org>
Cc: <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT