Server-side validation is always the best option. However, if server-side validation is missing, you can use HTML5 validation.
HTML5 also offers verification of the web addresses entered in the fields and the numbers in the fields. Validation of numbers even takes into account the minimum and maximum values ββof attributes, so browsers will not allow you to submit a form if you enter a number that is too large.
If you do not want to validate the form using HTMl5, just use the novalidate attribute
<form novalidate> <input type="email" id="addr"> <input type="submit" value="Subscribe"> </form>
source share