Form
Form
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">
<title>Website</title>
<style>
body{
background-color: rgb(157, 242, 192);
font-size: 20px;
}
h1{
text-decoration: underline;
text-align: center;
}
input,select,button{
font-family: 'Times New Roman', Times, serif;
background-color: antiquewhite;
border-radius: 5px;
height: 22px;
border: 1px solid black;
}
::placeholder{
color:black;
font-size: 16px;
}
</style>
</head>
<body>
<h1> Registration Form</h1>
<div>
<form action="java.html" method="post">
<fieldset>
<legend>Registration Form </legend>
<label for="fname">Firstname:</label>
<input type="text" id="fname" placeholder="Enter your first name.."
required>
<label for="lname">Lastname:</label>
<input type="text" id="lname" placeholder="Enter your last name.."
required><br><br>
Gender:<br><input id="male" type="radio" name="gender"><label
for="male">Male</label><br>
<input id="female" type="radio" name="gender"><label
for="female">Female</label><br>
<input id="others" type="radio" name="gender"><label
for="others">Others</label> <br><br>
<label for="adrs">Address:</label>
<input type="address" id="adrs" placeholder="Enter your address.."
required> <br><br>
<label for="no.">Contact:</label>
<input type="password" id="no." placeholder="Enter your phone
number..." maxlength="12" required><br><br>
<label for="date">DOB:</label>
<input id="date" type="date"><br><br>
</body>
</html>