Untitled
unknown
plain_text
a year ago
3.1 kB
5
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
height: 120vh;
margin: 0;
}
form {
width: 400px;
padding: 20px;
border: 1px solid #000;
border-radius: 8px;
background-color: #e9ecef;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
font-size: 24px;
margin-bottom: 20px;
color: #000080;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
textarea {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
}
textarea {
height: 60px;
}
.gender-group {
margin-bottom: 15px;
}
.gender-group label {
display: inline-block;
margin-right: 10px;
}
.button-group {
display: flex;
justify-content: space-between;
}
button {
width: 48%;
padding: 10px;
font-size: 14px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button[type="submit"] {
background-color: #007bff;
color: white;
}
button[type="reset"] {
background-color: #6c757d;
color: white;
}
</style>
</head>
<body>
<form>
<h1>Registration Form</h1>
<label for="first-name">First Name</label>
<input type="text" id="first-name" name="first-name" required>
<label for="last-name">Last Name</label>
<input type="text" id="last-name" name="last-name" required>
<label for="nick-name">Nick Name</label>
<input type="text" id="nick-name" name="nick-name">
<label for="email">e-mail</label>
<input type="email" id="email" name="email" required>
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
<label for="dob">Date of Birth</label>
<input type="date" id="dob" name="dob" required>
<div class="gender-group">
<label>Gender</label>
<label><input type="radio" name="gender" value="male" required> Male</label>
<label><input type="radio" name="gender" value="female" required> Female</label>
<label><input type="radio" name="gender" value="others" required> Others</label>
</div>
<label for="mobile">Mobile</label>
<input type="tel" id="mobile" name="mobile" required>
<label for="address">Address</label>
<textarea id="address" name="address"></textarea>
<div class="button-group">
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</div>
</form>
</body>
</html>
Editor is loading...
Leave a Comment