PhilRey
10-24-2003, 01:02 PM
Noobie alert!
I have been learning about CSS from http://www.w3schools.com.
I don't understand the difference between the class selector versus the id selector. It seems that the results are identical.
Here's how I understand it.
.blue { color:blue }
Causes every element in the HTML document with class=blue to have blue text.
#blue { color:blue }
Causes every element in the HTML document with id=blue to have blue text.
http://www.w3schools.com/css/css_syntax.asp tries to explain it, but I just don't see the difference.
Could someone please clarify this for me so that I can get it through my thick skull.
Thanks in advance.
I have been learning about CSS from http://www.w3schools.com.
I don't understand the difference between the class selector versus the id selector. It seems that the results are identical.
Here's how I understand it.
.blue { color:blue }
Causes every element in the HTML document with class=blue to have blue text.
#blue { color:blue }
Causes every element in the HTML document with id=blue to have blue text.
http://www.w3schools.com/css/css_syntax.asp tries to explain it, but I just don't see the difference.
Could someone please clarify this for me so that I can get it through my thick skull.
Thanks in advance.