Survey Form - Build a Survey Form

Tell us what’s happening:
Describe your issue in detail here.
anybody can tell me how to fix this,thank you
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1 id="title">freeCodeCamp Survey Form</h1>
<p id="description">Thank you for taking the time to help us improve the platform</p>
<form id="survey-form" value=value>
<label for="name
">Name: <input id=name
 type="text" required placeholder=”Enter your name”/></label>

<label for="email">Email: <input id="email" name="email" type="email" required placeholder=”Enter your Email”/></label>
<label for="number">Age(optional): <input id="number" name="number" type="number" required min="13" max="100" placeholder="dropdown"/></label>
<label id="name-label">
<label id="email-label">
  <label id="number-label">
<select id="dropdown">
<label for="current-roll">Which option best describes your current role?</label>
<select id="current-roll" name="current-roll">
  <option value="">Select current role</option>
  <option value="1">Student</option>
  <option value="2">Full-Time Job</option>
  <option value="3">Full-Time Learner</option>
  <option value="4">Prefer not to say</option>
  <option value="5">Other</option>
</select>
</label>
<fieldset>
<legend>Would you recommend freeCodeCamp to a friend?</legend>
<label for="definitely"><input id="definitely" type="radio" name="definitely" class="inline" /> Definitely</label>
<label for="maybe"><input id="maybe" type="radio" name="maybe" class="inline" /> Maybe</label>
<label for="not-sure">
<input id="not-sure" type="radio" required name="not-sure" class="inline" /> Not sure
</label>
<fieldset>
<label for=”favorite-feature”>What would you like to see improved? (Check all that apply)</label>
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Front-end Projects
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Back-end Projects
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Data Visualization
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Challenges
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Open Source Community
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Gitter help rooms
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Videos
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> City Meetups
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Wiki
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Forum
<input id="favorite-feature" type="checkbox" required name="favorite-feature" class="inline" /> Additonal Courses
</fieldset>
<label for="suggestions">Any comments or suggestions?
<textarea id="suggestions" name="suggestions" rows="5" cols="30" placeholder="Enter your comment here...."></textarea>
</label>

<input type="submit" value="submit" />
</form>
</body>
</html>
/* file: styles.css */
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #1b1b32;
color: #f5f6f7;
font-family: Tahoma;

font-size: 16px;
}

h1 {
margin: 1em auto;
text-align: center;
}

p {
margin: 1em auto;
text-align: center;
font-style:italic;
}

form {
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
padding-bottom: 2em;
}

fieldset {
border: none;
padding: 2rem 0;
border-bottom: 3px solid #3b3b4f;
}

fieldset:last-of-type {
border-bottom: none;
}

label {
display: block;
margin: 0.5rem 0;
}
dropdown{
  
}
input,
textarea,
select {
margin: 10px 0 0 0;
width: 100%;
min-height: 2em;
}

input, textarea {
background-color: #0a0a23;
border: 1px solid #0a0a23;
color: #ffffff;
}

.inline {
width: unset;
margin: 0 0.5em 0 0;
vertical-align: middle;
}

input[type="submit"] {
display: block;
width: 60%;
margin: 1em auto;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f;
border-color: white;
min-width: 300px;
}

input[type="file"] {
padding: 1px 2px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

it would be amazing if you describe your problem so we can help you to find your solution to pass this test.

this is wrong tips:
*Your #dropdown should have at least two selectable (not disabled) option elements.
*All your radio buttons should have a value attribute and value.
*Every radio button group should have at least 2 radio buttons.
*All your checkboxes inside #survey-form should have a value attribute and value.

  • ou should have an input or button element with an id of submit.

  • Failed:Your #submit should have a type of submit.

  • Failed:Your #submit should be a descendant of #survey-form.

below is my code and css document, i was coding on word, then i copy into the freecodecamp editor, when i just pasted,many mistake tips, i fixed some, but after i fixed my selection list is disapeared,changed into just some text, what happened

Registration Form

freeCodeCamp Survey Form

Thank you for taking the time to help us improve the platform

<label for="name

">Name: <input id=name

type=“text” required placeholder=”Enter your name”/>

Email: <input id=“email” name=“email” type=“email” required placeholder=”Enter your Email”/>

Age(optional):

Select current role Student Full-Time Job Full-Time Learner Prefer not to say Other Would you recommend freeCodeCamp to a friend?

Definitely

Maybe

Not sure

What would you like to see improved? (Check all that apply)

Front-end Projects

Back-end Projects

Data Visualization

Challenges

Open Source Community

Gitter help rooms

Videos

City Meetups

Wiki

Forum

Additonal Courses

Any comments or suggestions?

body {

width: 100%;

height: 100vh;

margin: 0;

background-color: #1b1b32;

color: #f5f6f7;

font-family: Tahoma;

font-size: 16px;

}

h1 {

margin: 1em auto;

text-align: center;

}

p {

margin: 1em auto;

text-align: center;

font-style:italic;

}

form {

width: 60vw;

max-width: 500px;

min-width: 300px;

margin: 0 auto;

padding-bottom: 2em;

}

fieldset {

border: none;

padding: 2rem 0;

border-bottom: 3px solid #3b3b4f;

}

fieldset:last-of-type {

border-bottom: none;

}

label {

margin: 0.5rem 0;

}

input,

textarea,

select {

margin: 10px 0 0 0;

width: 100%;

min-height: 2em;

}

input, textarea {

background-color: #0a0a23;

border: 1px solid #0a0a23;

color: #ffffff;

}

.inline {

width: unset;

margin: 0 0.5em 0 0;

vertical-align: middle;

}

input[type=“submit”] {

display: block;

width: 60%;

margin: 1em auto;

height: 2em;

font-size: 1.1rem;

background-color: #3b3b4f;

border-color: white;

min-width: 300px;

}

input[type=“file”] {

padding: 1px 2px;

}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.