Skip to main content
🎉 A11y Issue Detection Agent is now live! Detect accessibility issues like a WCAG expert with AI. Try now!
No Result Found
Connect & Get help from 6000+ developers on our Discord community. Ask the CommunityAsk the Community

required-fields-asterisk

Rule Severity : Moderate

Description

If you use asterisks (*) to indicate required fields, you must provide an instruction that explains their meaning. Without this instruction, users—especially those using screen readers—might not understand that a field is mandatory.

The required-fields-asterisk rule aligns with Web Content Accessibility Guidelines (WCAG) Success Criterion 3.3.2 (Labels or Instructions). This criterion ensures that you provide labels or instructions when content requires user input.

Examples

In the following example, the form uses an asterisk but does not explain what it represents.

Incorrect Sample
Copy icon Copy

In the following corrected example, an instruction clearly defines the asterisk before the user interacts with the form:

Correct Sample
Copy icon Copy

How to fix?

To fix violations of the required-fields-asterisk rule, follow these steps:

  1. Identify all forms that use an asterisk or similar symbol to mark required fields.

  2. Add a clear text instruction at the start of the form, such as “Fields marked with an asterisk (*) are required.”

  3. Ensure the instruction appears before the first required field so users see it before they provide input.

  4. Verify that the instruction is programmatically determinable and visible to all users.

Reference

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle