Interactive Rating Component using HTML, CSS, & JavaScript
Design comparison
Solution retrospective
Your feedbacks are the secret ingredient to our code's success!
Community feedback
- @petritnurediniPosted 10 months ago
Congratulations on completing your Interactive Rating Component project! ๐ Your dedication to learning and implementing new concepts in web development is commendable. Here are some best practices and suggestions to further enhance your project:
-
HTML Best Practices:
- Great use of semantic HTML elements! Continue this practice as it improves accessibility and SEO.
- Consider using
<figure>
and<figcaption>
for the image and caption in the thank-you page for better semantic meaning.
-
CSS Organization:
- Organize your CSS properties in a consistent order, such as positioning, box model, typography, and visual styling. This makes your code more readable and easier to maintain.
- Use comments in your CSS to section off different parts of the styling for easier navigation.
-
JavaScript Best Practices:
- Excellent job on structuring your JavaScript code. Consider adding comments to describe the functionality of each major block or function.
- In your JavaScript code, use
const
for variables that wonโt change andlet
for variables that will. This makes your code more predictable and less prone to bugs.
-
Responsiveness and Accessibility:
- Test your layout across different devices to ensure it's responsive and looks good on all screen sizes.
- Make sure that all interactive elements are keyboard accessible and have appropriate focus states.
-
Performance Optimization:
- Optimize your images to ensure they load quickly, especially important for users on slower connections. Tools like TinyPNG can help.
-
Cross-Browser Compatibility:
- Test your app in different browsers to ensure it works and looks consistent across them.
-
Code Cleanliness:
- Remove any commented-out code that is not being used, to keep your codebase clean and maintainable.
- Keep your indentation consistent across your HTML, CSS, and JavaScript files for better readability.
References for Further Learning:
- HTML Best Practices: MDN Web Docs
- CSS Organization: CSS-Tricks
- JavaScript Best Practices: JavaScript.info
- Accessibility: Web Accessibility Initiative (WAI)
- Responsive Web Design: A List Apart
Keep pushing your limits and exploring new challenges. Your progress is inspiring, and I'm excited to see what you'll create next in your journey as a web developer! ๐ป๐
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