Submitted about 1 year ago
Responsive Interactive pricing component solution
@KrishnaVishwakarma1595
Design comparison
SolutionDesign
Solution retrospective
Hello, Mentors
Responsive pricing component. Please go through this and provide your feedbacks. Thanks!
Built with
- Semantic HTML5 markup
- CSS custom properties
- CSS Flexbox
- Mobile-first workflow
- Javascript DOM Manipulation
Happy Coding
Community feedback
- @pRicard0Posted about 1 year ago
Some HTML tips
- All images must have an ALT attribute. However, for decorative images, the ALT attribute should be empty. Screen readers and other technologies will recognize an empty ALT tag, identify the image as decorative and skip over it.
- Instead of using the tag
<span>
for the price and discount text, I think you can use the<em>
tag. The<em>
tag is used to define emphasized text. The content inside is typically displayed in italic. A screen reader will pronounce the words in<em>
with an emphasis, using verbal stress.
UX tip
- Talking about the "billing" button... The user can only trigger the event by clicking on the circle. I think the user should be able to trigger the event when clicking on the div(with the class "switch") and the circle.
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