Program 4
Program 4
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 {
background-color: #f0f8ff; /* AliceBlue */
font-family: Arial, sans-serif;
text-align: center;
}
table {
margin: auto;
border-collapse: collapse;
width: 50%;
}
td {
padding: 10px;
}
input, select {
padding: 8px;
font-size: 1em;
}
.input-text {
background-color: #fffacd; /* LemonChiffon */
}
.input-email {
background-color: #e0ffff; /* LightCyan */
}
.input-password {
background-color: #ffe4e1; /* MistyRose */
}
.input-gender {
background-color: #98fb98; /* PaleGreen */
}
.submit-button {
font-size: 16px;
color: white;
background-color: #4682b4; /* SteelBlue */
border: none;
padding: 10px 20px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Registration Form</h1>
<table>
<tr>
<td><label for="name">Name:</label></td>
<td><input type="text" id="name" class="input-text" required /></td>
</tr>
<tr>
<td><label for="email">Email:</label></td>
<td><input type="email" id="email" class="input-email" required /></td>
</tr>
<tr>
<td><label for="password">Password:</label></td>
<td><input type="password" id="password" class="input-password"
required /></td>
</tr>
<tr>
<td><label for="gender">Gender:</label></td>
<td>
<select id="gender" class="input-gender">
<option value="">Select...</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" class="submit-button">Register</button>
</td>
</tr>
</table>
</body>
</html>