Validating fields in html dating for a month and he stopped calling
The form in HTML will look like this: tag improves usability.Clicking on the label will move the mouse cursor to the input with the id specified in the for attribute. I read the this code and made one of my own from it. The thing is that its not giving any error even if the fields are left empty. Your brace should be after function validate Form() and after the if, and at the end of the function. Lay your code out so the opening and closing braces match up and make sense to you. By validating form responses before accepting them, we can alert users to their errors before they submit the form.
Finally, notice that instead of using "text" as the input type for the email and url fields, we use "email" and "url".
In this way, client side form validation can vastly improve the user experience.