HTML - ID vs CLASS
Loading...
941
views
Loading...
Uploader Comments (PineHack)
see all
All Comments (3)
-
I have yet to find a video that explains this properly!
You just demonstrated exactly what you said you cant do; used an 'id' twice - which gave you the same result twice, as it should do coz its calling the same style -
and used a class twice - which gave you the same result twice, as it should do coz its calling the same style.
So i'm afraid i'm no wiser today :(
-
OMG, hey just want to tell you thank you so much. I have been searching all over the internet for a suitable understanding of ID and Class. This make much more sense. Thank you! Kevin from Jamaica
Loading...
@Detjo IDs are only *supposed* to be used once. This is mainly for javascript purposes. However, IDs will work on more than one element on a page. This is incorrect syntax, though it still works.
PineHack 1 month ago