Skip to content

Commit cafa2d1

Browse files
authored
Create index.html
1 parent 6abf74a commit cafa2d1

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

task20-form-validation/index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Task 20 - Form Validation</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<h2>Form Validation</h2>
12+
<form id="myForm">
13+
<div class="form-control">
14+
<label for="name">Name</label>
15+
<input type="text" id="name" placeholder="Enter your name">
16+
<small class="error"></small>
17+
</div>
18+
19+
<div class="form-control">
20+
<label for="email">Email</label>
21+
<input type="text" id="email" placeholder="Enter your email">
22+
<small class="error"></small>
23+
</div>
24+
25+
<div class="form-control">
26+
<label for="password">Password</label>
27+
<input type="password" id="password" placeholder="Enter password">
28+
<small class="error"></small>
29+
</div>
30+
31+
<button type="submit">Submit</button>
32+
<p id="successMsg"></p>
33+
</form>
34+
</div>
35+
36+
<script src="script.js"></script>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)