Design comparison
Solution retrospective
Any advice will be helpful.
Community feedback
- @sandro21-glitchPosted almost 2 years ago
Hi Nino
Here are some tips to improve your code
Use semantic HTML elements: You can use HTML elements like header, nav, section, etc to give meaning to your code and make it more accessible to users.
Use descriptive class and id names: Instead of using generic names like box, content, input, etc, you can use descriptive names like rating-container, rating-text, rating-input, etc.
Consider using CSS variables for values that are used multiple times throughout your code, such as colors.
Use appropriate font-size values for different devices, such as using 'em' or 'rem' instead of 'px'.
Use const instead of let for values that won't change in JavaScript.
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