Coding task · HTML and CSS course · Module 10: Accessibility (a11y)

Form Accessibility Validation

Accessible validation requires: aria-invalid on invalid fields, aria-describedby pointing to the error message, role="alert" on the error message, and an error summary at the top of the form with links to the fields.

Task

Test the form - click Submit without filling in the fields. Check how aria-invalid, aria-describedby, and role="alert" communicate errors.