ARIA States & Properties

aria-required

Build a form with the HTML form generator

Communicates that user input is required before submission. It does not enforce validity, so prefer native required where supported and implement validation for custom controls. Provide visible instructions as well. Value type: boolean. Accepted values: true, false. Default or omitted behavior: false. Applicable context: supported input roles; native example. The example intentionally uses a native HTML equivalent. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.

Formal Syntax & Structure

html syntaxhtml
aria-required="value" (replace value with a valid value; example uses preferred alternative)

Parameters & Attributes

NameTypeDescription
aria-requiredbooleanAccepted values: true, false. Default or omitted behavior: false. Context: supported input roles; native example. Requiredness depends on the role.

Working Example

Example Snippethtml
<label for="name">Name (required)</label><input id="name" required>
HTML Reference