Week 2 Day 1: HTML forms and input validation

This commit is contained in:
2025-12-23 16:03:56 +05:30
parent df6447c8eb
commit d38fa637b6
4 changed files with 120 additions and 0 deletions

37
Week-2/Day-1/index.html Normal file
View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Forms</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>Registration Form</h2>
<form>
<label>Full Name:</label>
<input type="text" required>
<label>Email:</label>
<input type="email" required>
<label>Password:</label>
<input type="password" required>
<label>Gender:</label>
<input type="radio" name="gender"> Male
<input type="radio" name="gender"> Female
<label>Skills:</label>
<input type="checkbox"> HTML
<input type="checkbox"> CSS
<label>About You:</label>
<textarea rows="4"></textarea>
<button type="submit">Register</button>
</form>
</body>
</html>