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 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

What are expectations?

Screen Reader support by expectation

ExpectationJAWSNarratorNVDAOrcaTalkBackVoiceOver (iOS)VoiceOver (macOS)
ChromeEdgeFirefoxEdgeChromeEdgeFirefoxFirefoxChromeSafariSafari
MUST convey the propertysupportedsupportedsupportedsupportedsupportedsupportedsupportednonenonesupportedsupported
MAY convey the invalid state when emptysupportedsupportedsupportedsupportedsupportedsupportedsupportednonenonenonenone

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)
ChromeEdgeFirefoxEdgeChromeEdgeFirefoxFirefoxChromeSafariSafari
The html required attribute on each HTML radio button in a fieldset applied to: input[type="radio"] elementsupportedsupportedsupportedsupportedsupportedsupportedsupportednonenonesupportedsupported

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)
ChromeEdgeFirefoxEdgeChromeEdgeFirefoxFirefoxChromeSafariSafari
The html required attribute on each HTML radio button in a fieldset applied to: input[type="radio"] elementsupportedsupportedsupportedsupportedsupportedsupportedsupportednonenonenonenone