Client-based validation can also reduce the number of times that the user has to submit the form to correct multiple errors.Note Even if you use client-side validation, validation is always also performed in server code.In that case, the validation is performed as users work in the browser.For example, suppose you specify that a value should be an integer.
Client side validation is performed by a web browser, before input is sent to a web server.
For example, if a page has an element as a placeholder for an individual field error, even if there is no error.
In some situations, displaying an error message can cause the page to reflow and can cause elements on the page to move around.
Most often, the purpose of data validation is to ensure correct user input.
Validation can be defined by many different methods, and deployed in many different ways.