Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
Your session has expired please log in again.
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 with HTML, CSS and JavaScript Only

Arn.28 90

@arn28

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


When building a component is it recommend to have the CSS and JavaScript in the DOM (HTML)?

Community feedback

David 8,000

@DavidMorgade

Posted

Hello man and congrats on finishing the challenge!

To answer your question, normally when you are doing a normal HTML, CSS and JS project, you separate them in different files, you can use the <link> tag to link your stylesheets in your html and the JS in .

For other frameworks like React or Vue, can be different, but in almost every web development tool, having everything separated in different files is usually the best practice and it makes your code more readable!.

Hope my feedback helped you!

Marked as helpful

1

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