Build A Survey Form
Build A Survey Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Survey Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="survey-container">
<h1 id="title">Customer Feedback Survey</h1>
<p id="description">We appreciate your feedback! Please take a moment to
fill out this survey.</p>
<form id="survey-form">
<!-- Name Field -->
<div class="form-group">
<label id="name-label" for="name">Full Name:</label>
<input type="text" id="name" name="name" required
placeholder="Enter your full name">
</div>
</body>
</html>
** end of undefined **
** start of undefined **
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling */
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Heading */
h1 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
/* Description */
#description {
text-align: center;
color: #555;
margin-bottom: 20px;
}
/* Label styling */
label {
font-size: 1.1em;
display: block;
margin-bottom: 5px;
}
/* Textarea styling */
textarea {
resize: vertical;
}
button[type="submit"]:hover {
background-color: #45a049;
}
/* Responsive Design */
@media (max-width: 600px) {
.survey-container {
padding: 15px;
}
}
** end of undefined **