Survey Form - Build a Survey Form

Tell us what’s happening:

Even though I code meets the conditions, the system does not accept it. As you can see in the code, I meet the conditions clearly, yet it does not accept it.

The Condition to meet is this:
All your checkboxes inside #survey-form should have a value attribute and value.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

  <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">

  <div class="survey-form">
  <h1 id="title">Survey Form</h1>
  <p id="description">Please fill out the form below:</p>
  <form id="survey-form">
      <label id="name-label" for="name">
        Name: <input placeholder="Enter Your Name" id="name" type="text" name="name" required />
      <label for="email" id="email-label">
        Email: <input placeholder="Enter Your Email" id="email" type="email" name="email" required/>
      <label id="number-label" for="number">Ph. Number: <input placeholder="Enter Your Number" id="number" type="number" min="10" max="13" name="number" required/></label>

      <label for="dropdown">
        <select id="dropdown" name="qualification">
          <option value="">(select one)</option>
          <option value="1">Secondary Education</option>
          <option value="2">Higher Education</option>
          <option value="3">Bachelor's Degree</option>
          <option value="4">Master's Degree</option>

      <label for="pursuing"><input id="pursuing" type="radio" name="qualif-type" class="inline" value="pursuing" checked /> Pursuing</label>
      <label for="completed"><input id="completed" type="radio" name="qualif-type" class="inline" value="completed" /> Completed</label>

     <legend>Field Of Interest?</legend>
     <label for="ai"><input class="inline" type="checkbox" id="ai" name="ai" value="ai" checked/> Artifial Intelligence (AI)</label>
     <label for="se"><input class="inline" type="checkbox" id="se" name="se" value="se" /> Software Engineering (SE)</label>
     <label for="wd"><input class="inline" type="checkbox" id="wd" name="wd" value="wd" /> Web Development (WD)</label>

      <label for="bio">Provide a bio:
          <textarea id="bio" name="bio" rows="3" cols="30" placeholder="I was born on..."></textarea>

    <label for="terms-and-conditions">
        <input class="inline" id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="">terms and conditions</a>
      <input type="submit" id="submit" value="Submit" />

/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;

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

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;

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;

  display: inline; 


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Survey Form - Build a Survey Form

Your checkbox here doesn’t have the value attribute.


<input type="checkbox" name="terms-and-conditions" value="user-has-accepted" />

You can give the value attribute any suitable value you want.