Forms · 16
Report validation errors
After an invalid submit, users need field state, specific descriptions, and a focused overview.
What to do
- Connect each field to its dedicated error with aria-describedby.
- Let invalid submission set aria-invalid="true" and visible error text.
- Make the error summary programmatically focusable with tabindex="-1".
Result
Run the checks
Edit the HTML and select “Check solution”. The preview updates automatically.
If you are stuck
The preview performs validation. Your markup must provide stable error IDs and a summary that script can focus.