WebAIM - Web Accessibility In Mind

E-mail List Archives

instruction for the input fields

for

From: Sumit Patel
Date: Apr 22, 2023 12:29AM


Hai all,

I was going through 3.3.2 labels or instructions,
according to g89 - https://www.w3.org/WAI/WCAG21/Techniques/general/G89
We need to provide instruction about the restriction on the format
fields. They have given Date field as an example.
So, I think it is applicable for fields like mail id, mobile number
and zip code also .
need to provide instruction like " <EMAIL REMOVED> ", "5-digit zip
code", "10-digit mobile number" etc.

Similarly, according to 3.3.3 error suggestion, we need to make the
error messages descriptive in a way which helps user to understand
what is the valid format.
For example, instead of saying "provide valid mail id" , "provide
valid mail id. for example: <EMAIL REMOVED> "

So, is it mandatory to mention the expected format of these fields in
both these scenarios? first one isbefore making the error and second
one is in the error message .

Regards,
Sumit.