ćć¬ć³ćæć¤ć³ šā¢ 64,250
@VCarames
Posted
Hey there! š Here are some suggestions to help improve your code:
- The "How did we do?" ** should be** a heading; for this challenge, it is most likely an
h2
.
- Unfortunately the HTML for the rating part needs to be rewritten as it was done incorrectly.
To ensure the ratings are fully accessible to all users and are built with the proper elements, the entire rating part needs to be built using a form
element.
- Wrap all elements within a
fieldset
, which will contain a visually hiddenlegend
using CSS. - Within the
fieldset
, include five (5)input radio
elements, each associated with a correspondinglabel
to enhance the accessibility of the "ratings." - Lastly, include a
button
to allow users to submit their selection.
- As mentioned above, this
<div class="submitBtn">SUBMIT</div>
should definitely be abutton
.
- After implementing the above changes, for your JS, the
eventListener
should be attached to theform
element, listening for asubmit
event.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! š¾
Marked as helpful
0