Html Code For A Survey
PROCEDURES FOR CREATING A SURVEY FORM ARE AS FOLLOWS:
1.CREATE A FOLDER WITH A NAME -SURVEY FORM
2.OPEN THE FOLDER WITH A VSCODE OR ANY TEXT EDITOR
3.CREATE A FILE NAME index.html
4.COPY THE HTML CODE BELOW AND PASTE THE CODE IN THE index.html file AND SAVE WITH THE COMMAND ,CONTROL AND S
5.INSTALL LIVE SERVER ON YOUR VSCODE
6.OPEN THE index.html file WITH THE LIVER SERVER
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3MTT OGUN STATE STUDY GROUP-SURVEY FORM </title>
<style>
body {
background-image: url('https://x.com/85Dapo19198/status/1807780408194445520/photo/1'); /* Replace with your background image URL */
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.form-container {
background-color: rgba(0, 58, 184, 0.9);
max-width: 500px;
width: 100%;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.form-container h2 {
text-align: center;
color: #333;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
color: #555;
}
.form-group input, .form-group select {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.form-group select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.submit-btn {
display: block;
width: 100%;
padding: 10px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.submit-btn:hover {
background-color: #218838;
}
</style>
</head>
<body>
<div class="form-container">
<h2>COHORT 2 Survey Form</h2>
<form action="#" method="post">
<div class="form-group">
<label for="fellow-id">Fellow ID</label>
<input type="text" id="fellow-id" name="fellow-id" placeholder="Enter your fellow ID" required>
</div>
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="state">State</label>
<input type="text" id="state" name="state" placeholder="Enter your state" required>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" name="phone" placeholder="Enter your phone number" required>
</div>
<div class="form-group">
<label for="account-number">Account Number</label>
<input type="text" id="account-number" name="account-number" placeholder="Enter your account number" required>
</div>
<div class="form-group">
<label for="bank-name">Bank Name</label>
<input type="text" id="bank-name" name="bank-name" placeholder="Enter your bank name" required>
</div>
<div class="form-group">
<label for="gender">Gender</label>
<select id="gender" name="gender" required>
<option value="" disabled selected>Select your gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>
<div class="form-group">
<label for="religion">Religion</label>
<select id="religion" name="religion" required>
<option value="" disabled selected>Select your religion</option>
<option value="christianity">Christianity</option>
<option value="islam">Islam</option>
<option value="other">Other</option>
</select>
</div>
<button type="submit" class="submit-btn">Submit</button>
</form>
</div>
</body>
</html>