Vanza Setia• 27,795
@vanzasetia
Posted
Hi, Robert Strzelczyk! 👋
A couple of suggestions:
- Use
<p>
element to hold the error message. Always wrap text content with a meaningful element. - Programmatically connect the error element with the input using
aria-describebdy
attribute. This way, the screen reader announces the error message for the right field. - The value of the input should not be removed if the users try to submit an invalid value. Also, it confuses me because the value becomes a placeholder.
- The password criteria should always be visible. It should be available when the users visit the page.
I hope my suggestions are useful for you. Have fun coding! 😄
Marked as helpful
0