Online: 18537
In order to detect whether user has entered a valid email id in the TextBox we can set the type attribute to “Email”.
<body>
<form>
Email: <input name="myEmail" id="myEmail" name="myEmail" type="email" required
placeholder="Please enter a valid email address" />
</form>
</body>
Output