Survey Form - Build a Survey Form

im basically stuck at this one part of the test and i have all the others assignments completed( All your checkboxes inside #survey-form should have a value attribute and value.) its saying i have no values but i do im not sure what to do

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
<meta charset="UTF-8"/>
<title>Demographic survey</title>
<link rel="stylesheet" href="styles.css" />
 </head>
  <body>
    <h1 id="title">Demograpgic Survey</h1>
    <p id="description">8 basic Demographic Question</p>
    <form = id ="survey-form">
      <Fieldset>
        <label id="name-label" for="name"> First & Last Name: <input id="name" name="name" type="text" placeholder="Ex:Henry Galvan"  required /></label>
        <label for="email"id="email-label" >Enter Your Email: <input id="email" name="email" type="email"  placeholder="example@email.com"required /></label>
      <label for="age">Input your age (years): <input id="age" type="number" name="age" min="18" max="120" /></label>
      </fieldset>
<fieldset>
 <legend>What is you Gender</legend>
 <label for="male"><input id="male " type="radio" name="male" class="inline" value="1"checked /> Male</label>
 <label for="Female"><input id="female" type="radio" name="male" class="inline" value="2"/> Female</label>
 <label for="other"><input id="other" type="radio" name="other" class="inline" value="3"/>Other</label>
 <label for="prefer "><input id="prefer" type="radio" name="other" class="inline" value="4"/ >Prefer not to say</label>
        <label for="Dropdown">What is your ethnic background?
          <select id="dropdown" name="Dropdown">
            <option value="">(select one)</option>
            <option value="1">African-American</option>
            <option value="2">Asian</option>
            <option value="3">White/Caucasian</option>
            <option value="4">Native Hawaiian or Pacific Islander</option>
            <option value="5">Hispanic or Latino</option>
            <option value="6">Two or more</option>
            <option value="7">Other (please specify)</option>
            <option value="8">Unknown</option>
            <option value="9">Prefer not to say</option>
            </select>
<fieldset>
<label>What is your annual household income?<input id="number" type="number" name="number" min="15080" max="953000" placeholder="Enter here " required/></label>
<label id="number-label"> What is your Annual Income<input id="number" type="number" name="number" min="15080" max="953000" placeholder="Enter here " required/></label>

<p> Are you a veteran or active member of the United States Armed Forces </p>
   <label><input type="checkbox" value="I-am-a-veteran-or-active-member"class="inline"> I am a veteran or active member</label>
   <label><input type="checkbox" value="No-I-am-not-a-veteran-or-activ-member"class="inline"> No I am not a veteran or active member</label>
   <label><input type="checkbox" value="I-prefer-to-self-describe"class="inline"> I prefer to self describe</label>
   <label><input type="checkbox" value="I-don't-wish-to-answer"class="inline"> I don't wish to answer</label>
</fieldset>
      <label for="bio">Provide a bio:
          <textarea id="bio" name="bio" rows="3" cols="30" placeholder="who are you..."></textarea>
        </label>
      <label for="terms-and-conditions">
        <input class="inline" id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
      </label>
      <label>
      <input type="submit" id= "submit" value="Submit"/>   
</form>
</body>
</html>

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

You forgot this one

fix, that and it will pass

1 Like

Look at your code:

<form = id ="survey-form">

You need to revisit the syntax here as well. Try a format like:

<element id="element-id">
1 Like

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