-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (29 loc) · 1.02 KB
/
index.html
File metadata and controls
35 lines (29 loc) · 1.02 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Validation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="form-container">
<form id="userForm">
<label for="name">Name:</label>
<input type="text" id="name" name="name">
<span class="error-message" id="nameError"></span>
<label for="name">Age:</label>
<input type="number" id="age" name="age" min="1">
<span class="error-message" id="ageError"></span>
<label for="email">Email:</label>
<input type="email" id="email" name="email">
<span class="error-message" id="emailError"></span>
<label for="password">Password:</label>
<input type="password" id="password" name="password">
<span class="error-message" id="passwordError"></span>
<button type="submit">Submit</button>
</form>
</div>
<script src="script.js"></script>
</body>
</html>