WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: required fields for log in pages

for

From: Jared Smith
Date: Aug 5, 2014 4:14PM


Greg Kraus wrote:
> Is it just that we all know by now that the fields will be required?

This. It's a well known convention that in order to log in you must
provide both your username and password. Indicating that these are
required isn't necessary.

One might similarly ask whether you should mark a Search field as
being required seeing as the only way to get an effective search
result is to put something in the text field. I don't think it's
necessary because it's obvious.

I don't think WCAG requires that you indicate required fields as being
such, at least not before the error identification stage (SC 3.3.1).
WCAG does, however, require that if there is a visual indication that
a field is required that this information be made accessible.

Jared