IntroductionWhen you are developing a page in pure HTML, then you can face a problem for email validation as the html page does not support the regular expression validation or any server side controls.
Here I am going to explain this with a piece of code, which will be easier to understand and implement. So lets start.
Take two html inputs one is of type text and another of type submit.
Now the java script function is bellow which has the regex for performing the email validation. Past it to the head section of your page