Build A Survey Form
Build A Survey Form
DOCTYPE html>
<html lang="en">
<link rel="styles.css" href="styles.css">
<head>
<title> Survey Form </title>
<meta charset="utf-8">
<h1 id="title"> Freecodecamp Survey Form </h1>
</head>
<body>
<p id="description">Thank you for taking the time to help us improve the
platform
<form id="survey-form">
</p>
<form id="survey-form">
<div>
<label id="name-label" for="name" > Name: </label>
<input id="name" type="text" name="name" placeholder="Enter Your Name"
required>
</div>
<div>
<label id="email-label" for="email" > Email: </label>
<input id="email" name="email" type="email" placeholder="Enter Your Email"
required>
</div>
<div>
<label id="number-label" for="number" > Age (optional): </label>
<input id="number" name="age" type="number" min="10" max="99"
placeholder="Enter Your Age">
</div>
<div>
<label for="dropdown">Select an option:</label>
<select id="dropdown" name="options">
<option value="" disabled > Select Your Current Role </option>
<option value="Student" > Student </option>
<option value="Full-time job" > Full-time job </option>
<option value="Full-time Learner" > Full-time Learner </option>
<option value="Prefer not to say" > Prefer not to say </option>
<option value="other" > Other </option>
</select>
</div>
<div>
<p> Would you recommend freeCodeCamp to a friend? </p>
<label> <input type="radio" name="frequency" value="definately" checked>
Definately </label>
<div>
<div>
<p>What do you like about our services? (Select all that apply)</p>
<label> <input type="checkbox" name="preference" value="Front-end projects"> Front-
end projects </label>
</div>
<div>
</div>
<div>
<button type="submit" id="submit">Submit</button>
</div>
</form>
</body>
</html>
** end of undefined **
** start of undefined **
body{
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
text-align: center;
margin: 0;
padding: 20px;
h1{
margin-bottom: 20px;
}
** end of undefined **