Submitted over 2 years ago
Interactive rating component with HTML, CSS and JavaScript Only
@arn28
Design comparison
SolutionDesign
Solution retrospective
When building a component is it recommend to have the CSS and JavaScript in the DOM (HTML)?
Community feedback
- @DavidMorgadePosted over 2 years ago
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 inFor 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 helpful1
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