HTML5 – 邮箱
它只接受邮件地址的值。此类型用于应包含电子邮件地址的输入字段。如果您尝试提交简单文本,则强制只输入格式为email@example.com的电子邮件地址。
示例
<!DOCTYPE HTML>
<html>
<body>
<form action = "/cgi-bin/html5.cgi" method = "get">
Enter email : <input type = "email" name = "newinput" />
<input type = "submit" value = "submit" />
</form>
</body>
</html>