Design comparison
Solution retrospective
Just finished a new challenge using flexbox, this help me a lot to get the bases of a simple site. Any tip, abvise or feedback will be apreciate.
Community feedback
- @vanzasetiaPosted about 3 years ago
👋Hi Johnnatan! I have some feedback on this solution:
- One interesting thing, that I found was that your
h1
, I noticed that it had the same color as the background color. If you want to prevent the accessibility issue by putting a hidden heading, I recommend to search for "sr-only css class" to hide theh1
. - 👍 Good job on leaving the
alt=""
empty for all decorative images. You may want to addaria-hidden="true"
to prevent the VoiceOver screen reader pronounces those images. - You should never uppercased the text directly on the HTML, unless you want the screen reader the spell it letter by letter. I recommend to use CSS to do that.
- For the
.card-box__text
, I recommend to use paragraph tag instead of adiv
. It's important to wrap the text with meaningful tag. Usespan
anddiv
for styling only. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the user to control the size of your page. - Lastly, you should delete all the comment on the bottom of your CSS. Remember, development code is not live code.
That's it! Hopefully this is helpful!
Marked as helpful2@JohnnatanVPosted about 3 years ago@vanzasetia Thank you for the feedback i will take into account everything and make some changes also to improve my next proyect.
I have one question. is really fine to leave the
alt=""
of aimg
empty? I read that a good practice is give a name to the image in that parameter.Again thank you very much.
0@vanzasetiaPosted about 3 years ago@JohnnatanV Yes, it is a good practice if the images are informative images.
But, in this case, all the icons are just decorative images, which mean if the user doesn't see those icons, the user still can understand the content of the website. To learn more, you can read the W3C website about decorative images.
Marked as helpful0 - One interesting thing, that I found was that your
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