Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

JS for Form validation

P

@simokitkat

Desktop design screenshot for the Ping single column coming soon page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I would appreciate any feedback!

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hi, Islam Soliman! 👋

The alternative text for the logo should be the company name, not the word "logo". Also, alternative text for images should not contain any words related to "image" (such as picture, photo, logo, icon, graphic, avatar). It is already an image element (<img>) so the screen reader will pronounce it as an image.

I recommend adding the novalidate to the <form> element through JavaScript. This way, if the script fails to load then, the native validation can work.

<input> element must have a label. In this case, you can use aria-label attribute to label the email input.

The error message should be connected programmatically with the associated input. You can connect them with aria-describedby attribute. After that, the error message should be a live region. You can make it a live region by using aria-live attribute.

If you want to learn more about creating an accessible form validation, you can read my blog post — How To Create Accessible Form with Simple Design?

I hope my suggestions are useful. Happy coding! 😄

Marked as helpful

0

P

@simokitkat

Posted

Hi @vanzasetia !

Thank you for your feedback! I certainly learned something new from your comment!

0
Vanza Setia 27,795

@vanzasetia

Posted

@simokitkat

No problem!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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