programming-examples/html/Basics/Creating HTML5 email input type.html
2019-11-18 14:44:36 +01:00

21 lines
468 B
HTML

<!DOCTYPE html>
<html subLang="en">
<head>
<title>HTML5 Email Input Type</title>
<style type="text/css">
input[type="email"]:valid{
outline: 2px solid green;
}
input[type="email"]:invalid{
outline: 2px solid red;
}
</style>
</head>
<body>
<form>
<label>
Email Address: <input type="email" name="mycolor" required>
</label>
</form>
</body>
</html>