New course! Every coder should learn Generative AI!
Try a free lesson+ 2
[SOLVED]Can a element have both I'd and class selector?
3 Answers
+ 4
Yes
+ 2
Thanks Oma falk
+ 1
Anand Raj
id and class are attribute of html elements. You can use both together.