+ 2
What's the difference between "class" and "id"
Thanks for answer
3 Answers
+ 8
Multiple elements can have the same class but you cannot give multiple elements the same ID. So for example, use your classes for something like a button style and an id for a specific button to perform a specific action.
+ 1
š® Thanks a lot. I didn't know about it
0
In CSS, classes are declared with "." and id's are declared with "#"