Quick Tip: Required Inputs
When completing a form, it should be apparent which inputs are required for submission. Unless it’s very obvious from the visual presentations (such as a single input form or username/password), there should be a visual indication for required fields – often text located inside the input’s label. In cases where users can visually tell which fields are required, but where this information is not present within the label, the aria-required="true"
attribute should be added to required inputs to inform screen reader users. Be sure to include informative, accessible error messaging if a form is submitted with required fields incomplete.
The monthly Web Accessibility Tip comes from WebAIM and is shared to get a wider audience. For more information about web accessibility, please visit the WebAIM website.
See also information about how you can subscribe to the monthly WebAIM Newsletter which contains lots of great information about web accessibility.