0
What's the differance between id and class in css?
3 Answers
+ 2
id is unique,you cant have two elements with same id,while you can have as much as you want elements with the same class.In the css classes are defined with . and ids with #
+ 1
I think they can be used similarly in CSS but I'm pretty sure the id is like your name, which is unique to each individual property, class is like your class in school, you can have several Id's in one class.
0
good answer id not to all but to one
class to one , two ,three .....element or all elements