required attribute (html)
Screen Reader support level: partial (9/11)
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 3 years ago to 5 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 5 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 |
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 |