div id / dic class

junery00

New Member
hi im new about this and maybe its a stupid question but i would like to know whats the difference between div id and div class , and sorry for my words but i dont speak english and i have to use a traslator
thanks
 

chrishirst

Well-Known Member
Staff member
An ID can only be used once in a document, but a class can be used many times.

Rules applied with an ID take precedence over class rules.

And neither apply to divs only.
 

junery00

New Member
thank you so much chrishirst i really apreciate your help im new so i have a bunch of questions i just hope not to bother you too much
 
Top