Design comparison
Solution retrospective
Any tips on naming classes? I'm so bad at it :(
Community feedback
- @o-gtkvPosted over 1 year ago
Hi, Xqu1shy
"Any tips on naming classes? I'm so bad at it :("
There's no need to get upset about it. In fact, this is one of the most difficult things about learning CSS :) There is no magical advice here. Only practice and read the code of more experienced developers. It is also useful to use some methodology for naming classes, such as BEM. But it helps to put things in order rather than coming up with the "right" names for the classes.
And a note about the code. Don't put any text inside the alt attribute if the image is used solely for decorative purposes, like here
<img src="./images/icon-todo.svg" alt="#">
Just specify alt="". This is important in terms of accessibility.
Hope you will find this helpful. Happy coding!
Marked as helpful0
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