-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (30 loc) · 1.25 KB
/
Copy pathindex.html
File metadata and controls
34 lines (30 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<form name="custom-form" onsubmit="return validateForm()">
<label for="first-name">First name</label>
<input type="text" id="first-name" name="first-name">
<label for="last-name">Last name</label>
<input type="text" id="last-name" name="last-name">
<label for="birthdate">Birthdate</label>
<input type="date" id="birthdate" name="birthdate">
<label for="email">Email</label>
<input type="email" id="email" name="email">
<label for="phone">Phone</label>
<input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}">
<label for="uid">User ID</label>
<input type="text" id="uid" name="uid" pattern="x[0-9]{3}-[0-9]{3}!">
<label for="favorite-number">Favorite number</label>
<input type="number" id="favorite-number" name="favorite-number">
<input type="submit" value="Submit">
</form>
<script src="validate.js"></script>
</body>
</html>