EN
HTML - email input
0 points
In this article, we would like to show you how to create and use email input element in HTML.
Quick solution:
xxxxxxxxxx
1
<label>
2
<span>Enter an email:</span>
3
<input type="email" name="input-name" />
4
</label>
Note:
The
input
is automatically validated to ensure that it's either empty or a properly formatted e-mail address before the form can be submitted.
In this section, we create email input using the input
element's type="email"
attribute and present the example usage inside the form
.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<form>
5
<label>
6
<span>Enter an email:</span>
7
<input type="email" name="input-name" />
8
<input type="submit" />
9
</label>
10
</form>
11
</body>
12
</html>