+ 3
Is it possible to use id and class for the same element?
most frequent questions in html
5 Answers
+ 3
+ 2
yes possible
+ 2
Yes. It was possible to use both ID and class in the same element. The same thing goes for classes. You can have multiple elements for one class. Though, in this kind of case...it was preferable to use the tag selector and/or the class inheritance in CSS.
+ 1
You can use one id and multiple class in one element.
0
Yes, it's possible.