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

@youssefsoua

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Jonathan 20

@jchu51

Posted

Hi @youssefsoua

Great job on completing this project.

  • form Tag: Please use it for the rating; it helps group related inputs.
<form onSubmit={...}>
    <input type="radio"/>
    <button type="submit" />
</form>
  • Radio Type for Rating : Radio buttons are best for ratings since users can select only one option.
<input type="radio" name="rating" value="1">
  • button vs. a Tag : Use button for actions like submitting and a for redirects.
<button type="submit">Submit</button>
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