Design comparison
SolutionDesign
Solution retrospective
I would be happy if you guys could review my code and find out if I am following best practices or not.
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey Raj, It looks good!...
My suggestions:
Buttons must have the discernible text
, So don't leave thealt
attribute empty when using the image<img>
inside the button<button>
without text.
<button class="getAdvice"> <img src="./images/icon-dice.svg" alt="Advice Generator"> </button>
Or set the attribute
aria-label
to describe the button.Page should contain a level-one heading
, Changeh2
toh1
You should always have oneh1
per page of the document... in this challenge, you will useh1
just to avoid theaccessibility issue
that appears in the challenge report... but don't useh1
on small components<h1>
should represent the main heading for the whole page, and for the best practice use only one<h1>
per page.
Hope this help!... Keep coding👍
Marked as helpful1@RajSanjelPosted over 2 years ago@Bayoumi-dev Thanks! I will follow your suggestions while making others projects.
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