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>

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.
Received on Monday, 27 May 2002 11:08:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:02 UTC