Web accessibility (a.k.a a11y) is the design and creation of websites that can be used by everyone. Accessibility support is necessary to allow assistive technology to interpret web pages. React Cool Form is designed to keep your input elements clean that helps you build accessible forms by using standard HTML techniques.
<label>elements to all the form controls, a screen reader will read out the label when the user is focused on the field.
- Use the aria-invalid to indicate a field has failed validation for the screen reader user.
- Use the aria-describedby to tie an error message with a field, a screen reader will read out the error message when the user is focused on the field.
- Use the alert role to provide a suggestion to the user for correction on form field errors, a screen reader will read out the alert message when it's added to the document structure.