It is said "With HTML5, we need no more js or a server side code to check if the user's input is a valid email or url address"
How can I validate email after a user enter? and without JS how to display a message if the user enter a wrong form of his/her email address.
<input type="email" pattern="[^ @]*@[^ @]*" placeholder="Enter your email">
<input type="submit" value="Submit">
In HTML5 you can do like this:
<form>
<input type="email" placeholder="Enter your email">
<input type="submit" value="Submit">
</form>
And when the user press submit, it automatically shows an error message like: