-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathform.html
More file actions
43 lines (43 loc) · 1.54 KB
/
form.html
File metadata and controls
43 lines (43 loc) · 1.54 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
35
36
37
38
39
40
41
42
43
<!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">
<link rel="stylesheet" href="form.css">
<title>Interactive form</title>
</head>
<body>
<form id="interactive-form">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<div class="error" id="name-error"></div>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<div class="error" id="email-error"></div>
</div>
<div class="form-group">
<label for="age">Age:</label>
<input type="number" id="age" name="age" required>
<div class="error" id="age-error"></div>
</div>
<div class="form-group">
<label for="location">Location:</label>
<select id="location" name="location" required>
<option value="">Select your location</option>
<option value="usa">USA</option>
<option value="uk">UK</option>
<option value="australia">Australia</option>
</select>
<div class="error" id="location-error"></div>
</div>
<div class="form-group">
<input type="submit" value="Submit">
</div>
</form>
<script src="form.js"></script>
</body>
</html>