Pricing Component with Toggle (HTML/CSS & JavaScript) Responsive.
Design comparison
Solution retrospective
Hello everyone,
Any comment or feedback with respect to this project will be highly appreciated.
With regards,
ZM. Baig
Community feedback
- @petritnurediniPosted 9 months ago
Congratulations on completing your Frontend Mentor challenge! It's awesome to see your hard work materialize into a well-structured project. Here are a few tips to further enhance your work:
-
HTML Structure and Accessibility:
- Great job on structuring your HTML! To further improve, consider using more semantic HTML elements like
<section>
for your card sections and<header>
for your main heading. This not only improves readability but also enhances accessibility. - Add
alt
attributes to your images if not already present. This is crucial for screen readers and users who might have images disabled.
- Great job on structuring your HTML! To further improve, consider using more semantic HTML elements like
-
CSS Best Practices:
- You've done a good job with CSS. However, for maintainability, consider organizing your CSS. Group related styles together and comment sections like "Layout", "Typography", etc. This makes your stylesheet easier to navigate.
- Avoid using too many absolute units like pixels. Instead, use relative units like
em
,rem
, or percentages for better responsiveness and scalability.
-
JavaScript Enhancements:
- Your script for the toggle functionality is well-implemented. To make it more efficient, consider using
classList.toggle
for changing classes instead of directly manipulating styles. This keeps your JavaScript cleaner and separates concerns between style and behavior.
- Your script for the toggle functionality is well-implemented. To make it more efficient, consider using
Resources for Learning:
- Semantic HTML: MDN Web Docs
- CSS Best Practices: CSS-Tricks
- JavaScript
classList
: MDN Web Docs
Keep pushing your limits and exploring new challenges. Each project is a stepping stone to becoming a more proficient developer. Remember, the journey is as important as the destination. Keep up the great work! 💻🚀
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