0

Do people use id in css often ? Because I feel like class is way better than id.

I m new to css. Thank you.

16th Nov 2018, 9:03 AM
Android
Android - avatar
1 Réponse
+ 2
None of them is better. They both have different purpose. Class will be use when you need to target a similar e.g: I want my "cars" (class) to be blue. Id is make to target specificities. e.g: I want the car with the id "A290-82" to be red. All others will be blue.
16th Nov 2018, 9:42 AM
Geoffrey L
Geoffrey L - avatar