Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interactive rating component

@Ninunutsi

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any advice will be helpful.

Community feedback

Sandro 1,170

@sandro21-glitch

Posted

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 helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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