CARVIEW |
Important: This website does not attempt to establish a standard for how assistive technologies must behave. Read the FAQ for more information. Additionally, this is a work in progress. Please submit feedback or suggestions.
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 4 years ago to 6 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 6 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 |
Tests
Test | Last update |
---|---|
The html required attribute on each HTML radio button in a fieldset | 2021-08-07 |
Is something not right?
We use our GitHub repository to manage our issue tracking. Please provide as much information as you can for issues, and please leave the id in the issue title intact.
Create an issue for this feature