aria-invalid

An ARIA attribute that marks a form control's current value as failing validation.

In more detail

Screen readers announce the control as invalid. Set it only after validation has run, not while the user is still typing the first time, and pair it with a visible, linked error message.

Related terms

Taught in

References