0

Difference between the id and class selectors

I'm trying to understand the two types of selectors.Can someone help me give a more clear explanation?

30th Mar 2022, 6:15 PM
Evans bett
Evans bett - avatar
3 Respuestas
+ 2
You use id only once. Hope this snippet helps https://code.sololearn.com/WRpw23sM9odk/?ref=app
30th Mar 2022, 6:35 PM
Fu Foy
Fu Foy - avatar
+ 2
id must be unique value in a file , applied to single time to a element where as class can applied to various tags as many times as you want...
30th Mar 2022, 6:39 PM
Jayakrishna 🇮🇳
+ 1
Basically think of a house 🏠 = I'd Which is basically the house address And class is like who lives inside of it
30th Mar 2022, 7:10 PM
TINKLE DASH
TINKLE DASH - avatar