required attribute (html)
Screen reader support level: partial (9/12)
Voice Control support level: unknown
On this page
About this feature
The required attribute is a boolean attribute. When specified, the element is required.
Age of results
Results across all tests for this feature range from 2 years ago to 4 years ago. Detailed dates and version information can be found in associated tests.
Caution
Failing or partial results may be out of date. The oldest result is from 4 years ago. Consider running the associated tests and contributing results.
Expectations
Screen Reader support by expectation
Expectation | JAWS | Narrator | NVDA | Orca | TalkBack | VoiceOver (iOS) | VoiceOver (macOS) | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Edge | Chrome | Edge | Firefox | Firefox | Chrome | Safari | Safari | |
MUST convey the property | supported | supported | supported | supported | supported | supported | supported | none | none | supported | supported |
MAY convey the invalid state when empty | supported | supported | supported | supported | supported | supported | supported | none | none | none | none |
Voice Control support by expectation
Expectation | Dragon Naturally Speaking | Voice Access (Android) | Voice Control (iOS) | Voice Control (MacOS) | Windows Speech Recognition | Windows Voice Access | ||
---|---|---|---|---|---|---|---|---|
Chrome | Chrome | Safari | Safari | Edge | Chrome | Edge | Chrome | |
Not applicable |
Expectation: convey the property
Rationale:
The user needs to know that input is required
Strength of this expectation for different types of assistive technologies:
- Screen Readers: MUST
- Voice Control: NA
Examples:
- A screen reader might announce the property along with the elements name, role, and value
Test | JAWS | Narrator | NVDA | Orca | TalkBack | VoiceOver (iOS) | VoiceOver (macOS) | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Edge | Chrome | Edge | Firefox | Firefox | Chrome | Safari | Safari | |
The html required attribute on each HTML radio button in a fieldset applied to: input[type="radio"] element | supported | supported | supported | supported | supported | supported | supported | none | none | supported | supported |
Expectation: convey the invalid state when empty
Rationale:
The user might want to confirm that the input is invalid when empty
Strength of this expectation for different types of assistive technologies:
- Screen Readers: MAY
- Voice Control: NA
Test | JAWS | Narrator | NVDA | Orca | TalkBack | VoiceOver (iOS) | VoiceOver (macOS) | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Edge | Chrome | Edge | Firefox | Firefox | Chrome | Safari | Safari | |
The html required attribute on each HTML radio button in a fieldset applied to: input[type="radio"] element | supported | supported | supported | supported | supported | supported | supported | none | none | none | none |