Survey Form - Build a Survey Form

Tell us what’s happening:
When I run the challenge tests it says I failed the " All your checkboxes inside #survey-form should have a value attribute and value." test. As far as I can tell I added values to all my checkboxes, am I missing something?

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Experience Survey</title>
    <link rel="stylesheets" href="styles.css">
  </head>
    <body>
      <h1 id="title">Experience Survey</h1>
        <p id="description"> Tell us about the kind of events you attended at UBC </p>
      <form id="survey-form"action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label id="name-label" for="name">Name</name>
        <input id="name" type="text" placeholder="Enter your First and Last Name" required><br>
        <label id="email-label" for="email">Email</label>
        <input id="email" type="email" placeholder="Enter your email here"required><br>
        <label id="number-label" for="number">Age</label>
        <input id="number" type="number" min="0" max="150" placeholder="Enter your age here" required><br>
        </fieldset>
        <fieldset> 
          <label id="campus-label" for="campus">Which UBC campus do you attend?</label><br>
          <input id="vancouver-campus" name="campus" type="radio" value="vancouver" required>
          <label id="vancouver-campus-label" for="ubc-campus">Vancouver Campus</label><br>
         <input id="okanagan-campus" name="campus" type="radio" value="okanagan" required>
          <label id="okanagan-campus-label" for="okanagan-campus">Okanagan Campus</label>
          </fieldset>
          <fieldset>
          <label id="ubc-year-label" for="ubc-year">What year are you in?</label>
          <select id="dropdown" name="ubc-year">
            <option value="prospective">Prospective Student</option>
            <option value="1">First Year</option>
            <option value="2">Second Year</option>
            <option value="3">Third Year</option>
            <option value="4">Fourth Year</option>
            <option value="graduated">Graduated</option>
            <option value="other">Other</option>
          </select>
            </fieldset>
            <fieldset>
            <label id="events-label" for="events">Please check all the events you have attended at UBC:</label><br>
            <input id="jumpstart" name="events" value="jumpstart" type="checkbox">
            <label id="jumpstart-label" for="jumpstart">Jumpstart</label><br>
            <input id="imagine-day" name="events" type="checkbox" value="imagine-day">
            <label id="imagine-day-label" for="imagine-day">Imagine Day</label><br>
            <input id="homecoming" name="events" type="checkbox" value="homecoming">
            <label id="homecoming-label" for="homecoming">Homecoming</label><br>
            <input id="clubs-day" name="events" type="checkbox" value="clubs-day">
            <label id="clubs-day-label" for="clubs-day">Clubs Day</label><br>
            <input id="welcome-bbq" name="events" type="checkbox" value="welcome-bbq">
            <label id="welcome-bbq-label" for="welcome-bbq">Welcome Back BBQ</label><br>
            <input id="block-party" name="events" type="checkbox" value="block-party">
            <label id="block-party-label" for="clock-party">Block Party</label><br>
            <input id="long-boat" name="events" type="checkbox" value="long-boat">
            <label id="long-boat-label" for="long-boat">Day of the Long Boat</label><br>
            <input id="storm-wall" name="events" type="checkbox" value="storm-wall">
            <label id="storm-wall-label" for="storm-wall">Storm The Wall</label>
              </fieldset>
          <fieldset>
            <label id="comment-label" for="comment">Add here any other campus-wide UBC hosted events you have been to:</label><br>
            <textarea id="comment" placeholder="Enter any other UBC events here"></textarea>
            </fieldset>
          <fieldset>
            <input id="consent" type="checkbox" required>
            <label id="consent-label" for="consent">I consent to share this information to the public</label>
            </fieldset>
            <fieldset>
              <input id="submit" type="submit" value="Submit">
              </fieldset>
    </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/98.0.4758.102 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

Where is your ‘form’ element closing tag? The penultimate ‘fieldset’ doesn’t have a value for the ‘checkbox’.

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