0

One of the accessibility criteria is "3.3.2 Labels or Instructions" and one of the ways to meet that criterion is by identifying required fields. https://www.w3.org/TR/WCAG20-TECHS/H90

Is a website really non-conforming though if on a simple username/password login form you do not state that all fields are required?

1

You should be ok if the username/password fields don't require any special instructions. If the username was something unusual, like a phone number or membership number, then you'd probably want instructions associated with the input field (via aria-describedby). But for standard username/password fields, you're ok.

The intent of 3.2.2 is "so that users know what input data is expected". For username/password, it's well known what is expected. If you had more input fields than just those two, then you should mark the fields as required.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.