
Submitted 24 days ago
Responsive contact form
#accessibility#animation#lighthouse#van-js
@saccoViola
Design comparison
SolutionDesign
Community feedback
- @IbrahimMuradPosted 16 days ago
Looks good. But you need some adjustments for better results.
- Add novalidation to the form since you are validating manually.
- Remove the action attribute; you are not making any requests.
- The event listener should be 'submit' on the form, not the 'click' on the button.
- aria-descripedby takes the id of the error element; you passed the id of the same element.
- Since you added required to the inputs, you just need to use
inputElement.validity.valid
to check if the value is valid (in this case, it will ensure that the value is provided and the email is a valid email). - Give each label for the radio input a unique
for
value (for example, the value itself - general or support-), then add anid
with the same value so that when you click on it, the value is selected. - I noticed that you, sometimes, uses
<br />
, it works but you can wrap the elements that you want in the same line and use CSS to style it to stay in the same line, and also with CSS make sure the next element is in its own line. - some other styles are missing, but I think its fine.
Let me know if you need more clarifications.
1
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