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

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 a year ago to a year 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 a year ago. Consider running the associated tests and contributing results.

Expectations

What are expectations?

Screen Reader support by expectation

ExpectationJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeIEFirefoxEdgeChromeFirefoxFirefoxChromeSafariSafari
MUST convey the propertysupportedsupportedsupportedsupportedsupportedsupportednonenonesupportedsupported
MAY convey the invalid state when emptysupportednonesupportedsupportedsupportedsupportednonenonenonenone

Voice Control support by expectation

ExpectationDragon Naturally SpeakingVoice Access (Android)Voice Control (iOS)Voice Control (MacOS)Windows Speech Recognition
ChromeChromeSafariSafariChrome
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
Screen Reader support for 'MUST convey the property'
TestJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeIEFirefoxEdgeChromeFirefoxFirefoxChromeSafariSafari
The html required attribute on each HTML radio button in a fieldset applied to: input[type="radio"] elementsupportedsupportedsupportedsupportedsupportedsupportednonenonesupportedsupported

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
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 fieldset applied to: input[type="radio"] elementsupportednonesupportedsupportedsupportedsupportednonenonenonenone