+ 1

What is the difference between class and id

25th Sep 2018, 2:26 PM
<Z™>
<Z™> - avatar
3 Answers
+ 2
One element cannot have more than one id.
25th Sep 2018, 2:35 PM
Bebida Roja
Bebida Roja - avatar
+ 1
...and classes can be used if you have multiple elements that need the exact same styles
26th Sep 2018, 10:49 AM
Douwe Osinga
Douwe Osinga - avatar
+ 1
but as an alternative to classes is just using p{} and body{}
26th Sep 2018, 10:50 AM
Douwe Osinga
Douwe Osinga - avatar