Design comparison
Solution retrospective
your feedback will be a great help to improve my code
Community feedback
- @petritnurediniPosted 9 months ago
Great job on completing the Interactive Rating Component project! You've successfully implemented essential web development features and styles. Here are some concise best practices recommendations to enhance your project:
-
Separate JavaScript from HTML: Refrain from using
onclick
in HTML. Instead, add event listeners in your JavaScript file. This improves maintainability and separation of concerns. More on this here. -
Use Semantic HTML: Consider using
<button>
tags for interactive elements instead of<li>
for ratings. This enhances accessibility. Learn more about semantic HTML here. -
CSS Classes for Styling: Instead of changing classes to apply styles in JavaScript, consider toggling a specific class. This approach is cleaner and more maintainable. Check out classList for more information.
-
Accessibility Considerations: Ensure your site is accessible, especially for keyboard users and screen readers. This includes proper ARIA roles and labels. Learn about accessibility here.
-
CSS with Tailwind: You're using Tailwind effectively. Continue exploring its utility classes for responsive design and state variants. Tailwind documentation is a great resource here.
-
Responsive Design: Ensure your design is responsive on various devices. Media queries can help adjust layouts for different screen sizes.
-
Feedback for User Actions: Implement visual feedback for user interactions like hover and active states on buttons for a better user experience.
Keep up the fantastic work! Your dedication to learning and applying best practices in web development is commendable. Excited to see your growth and more intricate projects in the future!
0@meassPosted 9 months ago@petritnuredini Thank you for your feedback. I'm going to improve it.
0 -
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