[SOLVED]Can a element have both I'd and class selector? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[SOLVED]Can a element have both I'd and class selector?

12th Jul 2021, 7:56 AM
Learner
Learner - avatar
3 Answers
+ 4
Yes
12th Jul 2021, 7:57 AM
Oma Falk
Oma Falk - avatar
+ 2
Thanks Oma falk
12th Jul 2021, 7:58 AM
Learner
Learner - avatar
+ 1
Anand Raj id and class are attribute of html elements. You can use both together.
12th Jul 2021, 10:42 AM
A͢J
A͢J - avatar