The validation properties restrict what is accepted when the user enters data in a text form or Web page.