@Bayoumi-dev
Posted
Hey!
It looks good!... You have accessibility issues
that need to fix.
Document should have one main landmark
, Contain the component with<main>
.
<main>
<div class="container">
//...
</div>
</main>
-
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. -
All page content should be contained by landmarks
, Contain the attribution with<footer>
.
<footer>
<div class="attribution">
//...
</div>
</footer>
Buttons must have the discernible text
, So don't leave thealt
attribute empty when using the image<img>
inside the button<button>
without text.
Or set the attribute<button class="change"> <img src="./images/icon-dice.svg" alt="Advice Generator"> </button>
aria-label
to describe the button.
Hope this help!... Keep coding👍
Marked as helpful