vindaloo
04-04-2003, 02:59 AM
Hi,
I am just starting to learn HTML using 1st Page, and have decided that the best thing to do is go straight into using CSS. One thing I can't see at the moment is the difference between the CLASS attribute and the ID attribute, as in
.green { color: green }
<P CLASS=green>Hello!</P> and
#green { color: green }
<P ID=green>Hello!</p>
I've gone though a couple of tutorials, but they didn't explain the practical differences. My problem is that I can't see when you would use ID instead of CLASS.
Apologies if this has been asked before, but I didn't have any luck with searching the forums.
Thanks in advance.
I am just starting to learn HTML using 1st Page, and have decided that the best thing to do is go straight into using CSS. One thing I can't see at the moment is the difference between the CLASS attribute and the ID attribute, as in
.green { color: green }
<P CLASS=green>Hello!</P> and
#green { color: green }
<P ID=green>Hello!</p>
I've gone though a couple of tutorials, but they didn't explain the practical differences. My problem is that I can't see when you would use ID instead of CLASS.
Apologies if this has been asked before, but I didn't have any luck with searching the forums.
Thanks in advance.