+ 1
IDs vs Classes in CSS
Based on the lesson I just completed, it seems like ID attributes can only be used once per page, while class attributes can be used several times on the same page. Other than that they seem functionally identical. Why would someone ever use ID when class is just more flexible? Are they different in some other way?
2 Réponses
+ 7
https://www.sololearn.com/discuss/725386/?ref=app
https://www.sololearn.com/discuss/2431174/?ref=app
https://www.sololearn.com/discuss/686399/?ref=app
https://www.sololearn.com/discuss/706061/?ref=app
https://www.sololearn.com/discuss/56647/?ref=app
https://www.sololearn.com/discuss/91160/?ref=app
https://www.sololearn.com/discuss/1454141/?ref=app
https://www.sololearn.com/discuss/1287039/?ref=app
https://www.sololearn.com/discuss/900416/?ref=app
https://www.sololearn.com/discuss/210958/?ref=app
+ 2
Thank you!