Notice: This is a work in progress. Please submit feedback or suggestions.

required attribute (html)

Screen reader support level: partial (8/10)

Voice Control support level: not applicable

On this page

The required attribute is a boolean attribute. When specified, the element is required.

Expectations

What are expectations?

Screen Reader support by expectation

ExpectationJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
MUST convey the propertysupportedsupportedsupportednonenonesupportedsupported
MAY convey the invalid state when emptypartial (2/3)supportedsupportednonenonenonenone

Voice Control support by expectation

ExpectationDragon Naturally SpeakingVoice Access (Android)Voice Control (iOS)Voice Control (MacOS)Windows Speech Recognition
Not applicable

Expectation: convey the property

Rationale: The user needs to know that input is required

Strength of these expectations for different types of assistive technologies:

  • Screen Readers: MUST
  • Voice Control: NA
Screen Reader support for 'MUST convey the property'
TestJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeIEFirefoxEdgeChromeFirefoxFirefoxChromeSafariSafari
The html required attribute on each HTML radio button in a fieldsetsupportedsupportedsupportedsupportedsupportedsupportednonenonesupportedsupported

Expectation: convey the invalid state when empty

Rationale: The user might want to confirm that the input is invalid when empty

Strength of these expectations for different types of assistive technologies:

  • Screen Readers: MAY
  • Voice Control: NA
Screen Reader support for 'MAY convey the invalid state when empty'
TestJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeIEFirefoxEdgeChromeFirefoxFirefoxChromeSafariSafari
The html required attribute on each HTML radio button in a fieldsetsupportednonesupportedsupportedsupportedsupportednonenonenonenone