Design comparison
Community feedback
- @gomezlucasPosted over 4 years ago
Nice Work! Congrats! I d use classes to target the style of the elements. And leave Id's when I need to target elements from Js for example. It's not a rule write on stone though and it doesn't make a big difference in small projects, but it's good to take the habit. Check this link that explain the reasons why better: https://dev.to/clairecodes/reasons-not-to-use-ids-in-css-4ni4
1@akamfoadPosted over 4 years ago@gomezlucas thanks for your feedback I appreciate it, and you’re right I did because there isn’t such a reuse in the page or at least as I think of doing it, but I’ll consider your note next time, using convention rules in the code make it easy to people get why you did it that way. thanks again😍
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord