Web Content Accessibility Guidelines 2.1

3.3.1 Error Identification (Level A)

If an input error is automatically detected, the item that is in error is identified and the error is described to the user in text.

Understanding 3.3.1