OneCompiler

Basic html

1654
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Simple Registration Form</title> </head> <body> <h1>Registration Form</h1> <form action="#" method="post"> <label for="fullname">Full Name:</label><br> <input type="text" id="fullname" name="fullname" required><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br><br>

<label for="password">Password:</label><br>
<input type="password" id="password" name="password" required><br><br>

<label for="gender">Gender:</label><br>
<select id="gender" name="gender" required>
  <option value="" disabled selected>Select</option>
  <option value="male">Male</option>
  <option value="female">Female</option>
  <option value="other">Other</option>
</select><br><br>

<label for="dob">Date of Birth:</label><br>
<input type="date" id="dob" name="dob" required><br><br>

<button type="submit">Register</button>
</form> </body> </html>