0

Guys in HTML Whats the diffrence between an Id and class?

HTML

25th Dec 2016, 9:04 AM
JIM KINYUA
JIM KINYUA - avatar
3 Réponses
+ 9
An ID is an identifier that can only be used once on a page, and all tags can only have 1 ID. A class can be used as many times as you want. You can also set multiple classes to one tag, if you put all the classes in the same set of quotes.
25th Dec 2016, 9:25 AM
Tamra
Tamra - avatar
0
An id is used for one specific tag but a class can be used multiple times in page
25th Dec 2016, 9:19 AM
Tanvir Ahmed
Tanvir Ahmed - avatar
0
Thanks y'all
25th Dec 2016, 7:25 PM
JIM KINYUA
JIM KINYUA - avatar