
Design comparison
Community feedback
- @khatri2002Posted 2 months ago
Hi! The developed solution looks good! The responsiveness is handled very well! Great job!
Suggestion:
You’ve used the
<div>
element for theDaily
,Weekly
, andMonthly
texts. However, since these are clickable and trigger some action (e.g., switching views), a<button>
element would be more appropriate.Why Use
<button>
Instead of<div>
?-
Semantics and Accessibility:
<button>
is designed for user interaction and clearly conveys its purpose to assistive technologies (like screen readers).
-
Consistency in Design:
- Using a
<button>
aligns with best practices, as it’s consistent with other interactive elements on your webpage.
- Using a
Switching to
<button>
ensures your solution adheres to web standards, improves accessibility, and provides a more polished user experience.
Fantastic job so far! Keep it up! 🚀
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