This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

Required Fields - Easy Checks

What is a Required Field?

Example of field with asterisk to mark required status

Example of field with text to mark required status

A required form field must be completed before you submit a form.

The best way to indicate a required field is to include the word ‘required’ as part of the label. Many forms use a red asterisk, ‘*’, in the label. The asterisk is often not announced to screen reader users because it’s considered punctuation. People with low vision can often miss the ‘*’ too due to it’s small size and the color that is used.

Some forms don’t mark required fields but state that all fields are required unless marked ‘optional’.

A required field should also be flagged as required in the HTML code. This needs to include some visible indicator as well. If it doesn’t then everyone is likely to receive an error message that the required fields haven’t been completed.

Why are Required Fields important?

Indicating required fields visually is important for everyone to know what parts of a form they are required to complete.

Checking for Required Fields

Checking this page

This is just for practice. Also, you can see what the check will look like on an accessible page.

Click on the button below:

Check required fields on this page

Example form fields:

Checking other pages

To check other pages you need to add the check link as a bookmark.

  1. Make sure your browser bookmarks bar is open. Ctrl/CMD+Shift+B will usually toggle the bar
  2. Drag this link to your browser bookmarks bar: Check required fields
  3. Visit the page you want to check
  4. Click on the ‘Check required fields’ link in your bookmarks
  1. Make sure your browser bookmarks/favorites bar is open. Ctrl/CMD+Shift+B will usually toggle the bar
  2. Create a bookmark to this page using Ctrl/CMD+D
  3. Edit your bookmarks - this varies depending on browser and operating system. There is usually a menu option to manage your bookmarks
  4. Edit the newly added bookmark to this page
  5. Paste the script copied into the URL or Link field

What to look for

Learn more

Back to Top

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.