Home

ariarequiredtrue

aria-required is a WAI-ARIA attribute used to indicate that user input is required on a user interface element. When set to true, assistive technologies such as screen readers may announce that the field is required. This attribute provides accessibility semantics for AT users, independent of native form validation.

In practice, aria-required is used on form controls and on custom widgets that accept text input, including

Guidance and considerations: aria-required should be used to augment, not replace, native validation when appropriate. It

Limitations and compatibility: Support for aria-required is strong in modern screen readers, but behavior can vary

elements
with
roles
such
as
textbox,
combobox,
or
other
input-like
controls.
The
common
syntax
is
aria-required="true"
or
aria-required="false";
some
implementations
may
also
rely
on
the
presence
of
the
attribute.
A
typical
example
is:
<input
type="text"
aria-required="true"
/>.
It
is
important
to
note
that
aria-required
communicates
a
requirement
to
AT
but
does
not
enforce
validation
in
the
browser.
should
be
paired
with
clear
labeling
and
accessible
instructions
to
explain
why
input
is
required.
For
native
form
controls,
using
the
required
attribute
remains
the
standard
method
for
browser-driven
validation
and
can
be
complemented
with
aria-required
for
AT
consistency.
On
custom
widgets,
ensure
that
the
required
state
is
programmatically
exposed
and
consistently
announced
by
assistive
technologies.
across
AT
and
browsers.
Do
not
rely
solely
on
aria-required
to
convey
requiredness;
provide
visible
labels
and,
where
feasible,
native
validation
cues.
Related
attributes
include
aria-invalid,
aria-describedby,
and
roles
defining
input
widgets.