I cant figure out why the tests wont pass on my survey form-please help!

Hi, I am currently doing the project “Build a Survey Form” and I’m getting 16/17 tests completed when I believe that it should be fully complete. Please may someone look at my code pasted below and advise me what I am missing.

<h1 id="title"> Survey form </h1>
<p id="description"> This is a short survey to get to know you a little</p>
<form id="survey-form">
  <label for="name" id="name-label">Name</label>
  <input id="name" type="text" name="name" placeholder="your name" value="" required>
  <label for="number" id="number-label"> Age </label>
  <input id="number" type="number" name="number" min="18" max="100" placeholder="required" value="" required>
  <label for="email" id="email-label">Email</label>
  <input id="email" type="text" name="email" placeholder="your email address" value="" required>
  <label for="dropdown" id="annoyance"> <b> Select Annoyance </b> </label>
  <select id="dropdown">
    <option value="eating_loudly"> Eating loudly </option>
    <option value="swearing"> Swearing </option>
    <option value="rude"> Rude </option>
    <option value="slow_driver"> Slow driver </option>
    <option value="farting_in_public"> Farting in public </option>
  <label for="favourate_colour" id="favourate_colour"> <b> Favourate colour: </b> </label>
  <input id="red" type="radio" name="color" value="Red">
  <label for="red"> Red</label>
  <input id="blue" type="radio" name="color" value="Blue">
  <label for="blue"> Blue</label>
  <input id="green" type="radio" name="color" value="Green">
  <label for="green"> Green</label>
  <label for="features"> <b> What is your <b>BEST</b> feature?</b> </label>
  <input id="checkbox" type="checkbox" name="features" value="Personality">
  <label for="checkbox"> Personality</label>
  <input id="check" type="checkbox" name="features" value="Looks">
  <label for="checkbox"> Looks</label>
  <input id="checkabox" type="checkbox" name="features" value="Intelligence">
  <label for="checkbox"> Intelligence</label>

  <label id="textarea"> Other: </label>
  <textarea id="other" name="other" rows="5" coloumns="20"></textarea>

  <input id="submit" type="submit" value="submit">



I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

You’ll definitely want to give us a link to your actual code/project so we can run the tests ourselves and give you better help.

Thanks, i just figured that out lol

Ok i have that below and will add in description too.

Perfect. If you read the red error message in the test feedback closely you’ll see:

“Email field should be HTML5 validated : expected ‘text’ to equal ‘email’”

This is telling you that something is set to “text” when it should be set to “email”. If you look closely at the email <input> I think you’ll be able to figure it out :slight_smile:

Fantastic! Thank you for your help. I didn’t notice that at all! :smiley:

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