Design comparison
SolutionDesign
Solution retrospective
I've finished another one š. Any suggestion on my code?
Community feedback
- @vanzasetiaPosted almost 3 years ago
š Hi Nightcode16!
š Congratulations on finishing this challenge! I hope that you had fun building it! I have some feedback on this solution:
- Accessibility
- š Well done on using
main
andfooter
landmarks correctly! - Create a custom
:focus-visible
styling to any interactive elements (button
, links,input
,textarea
). This will make the users can navigate this website using keyboard (by usingTab
key) easily. - Every page should only contain one
h1
. In this case, make all theh1
toh2
instead and if you want, you can have a hidden (visually)h1
(commonly known assr-only
styling).
- š Well done on using
<body> <main> <h1 class="sr-only">3 column preview card component challenge</h1> the card content goes below the heading one... </main> </body>
- For any decorative images, each
img
tag should have emptyalt=""
andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images. In this case, all images are decorative only. - Changing the
html
or root font size can cause huge accessibility implications for those of the users with different font size or zoom requirements. Read what an accessibility expert (Grace Snow) has said about it. - Styling
- For
padding
, I strongly recommend usingrem
orem
unit insteadvh
unit because it can give an unexpected result (may be too big or too small depending on the user screen size). - I would recommend giving a
max-width
on themain
element to prevent the cards become too wide on the large screen.
- For
That's it! Hopefully, this is helpful!
Marked as helpful0@Nightcode16Posted almost 3 years ago@vanzasetia thank you very much it was really helpful š
1 - Accessibility
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