@vanzasetia
Posted
Hi, Azzumar!
I recommend learning to create accessible form validation. Accessible form validation means that the error messages get pronounced by screen readers, each input has a label, and using the correct type of input
. I wrote an article to help you understand to do all of that.
How To Create Accessible Form with Boring Design?
<label>
should contain text content. Otherwise, it is almost the same as an <input>
with no accessible name.
Learn more about "accessible name" — What is an accessible name? - TPGi
Avoid using JavaScript to add styling (unless you have no other option). JavaScript allows you to change the CSS code using the style
property. But, to make debugging easier and improve code maintainability, it’s best to avoid it. Use CSS classes instead.
I hope you find this useful.
Marked as helpful