aria-required
BooleanIndicates that the user must provide a value for a field before the form can be submitted. Screen readers announce the field as 'required' so the expectation is clear up front. On native controls prefer the `required` attribute, which also triggers browser validation; use aria-required for custom widgets.
Values
- true
- User input is required before submission.
- false (default)
- User input is optional.
Used on
<input><select><textarea>
Associated roles
Example
aria-required="…"
<input role="spinbutton" aria-required="true" />References