+ 2
Difference between using "class" and "id"?
doesn't they perform same function?
5 Respuestas
+ 2
class can be used for more than 1 tags
id is unique for each tag in which it is defined.
+ 1
they have same function
+ 1
it will work perfectly fine but u will never do ao because there is only 1 head per page so use head instead of any other id or class
0
what if I define id in <head>