Design comparison
SolutionDesign
Solution retrospective
I've just learned flexbox after being used to grid for a month (I mastered it), and this is my first project using flexbox :
I hope u see it and tell me if I did good :)
Community feedback
- @PhoenixDev22Posted about 2 years ago
Hello RIM Sahia,
Congratulation on completing another frontend mentor. I have some suggestions regarding your solution:
- About
<h1>
it is recommended not to have more than one h1 on the page. Multiple<h1>
tags make using screen readers more difficult, decreasing your site’s accessibility. In this challenge , as it’s not a whole page, you can have<h1>
visually hidden withsr-only
. Then you can swap those<h1>
with<h2>
- In my opinion, the images are much likely to be decorative. For any decorative images, each img tag should have empty
alt=""
andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images.
- No need for
<form>
there is nothing , when there is a<button>
, it does not mean you need a<form>
. What would happen when the user click those learn more? In my opinion, clicking those "learn more" would likely trigger navigation not do an action so button elements would not be right. So you should use the<a>
. For future use , it's a good habit of specifying the type of the button to avoid any unpredictable bugs.
- Add
border-radius
andoverflow hidden
to the main container that wraps the three cards so you don't have to setborder-radius
to individual corners.
Hopefully this feedback helps.
Marked as helpful1 - About
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