Need help with my survey form project!

Hi!
I just built this survey form while going through responsive web desing course. https://codepen.io/Gamerboy3/pen/zYPWRpN?editors=1100)
It passes 15/17 test but cannot pass two and i can’t find the problem.
Can anyone help me??

You can click the red button under run tests which will show which tests you have failed.

You can read through this and make changes to pass the test

Good luck :slight_smile:

Thank you for your answer.
I did read those and made changes according to that but it still dosen’t work.
I even compared my code to example survey form code(https://codepen.io/freeCodeCamp/pen/VPaoNP?editors=1100) but i couldn’t find any diffrence or missing lines of code.

I think the reason why are getting an error for the test no.4 is because you named the div with the id of “name”. The id attribute should select a unique name for id, unlike the class selector.

Here’s the part:

<div id="name">
      <label id="name-label" for="name">Name:</label><br>
       <input
        type="text"
        name="name"
        id="name"
        class="form-control"
        placeholder="Enter your name"
        required
      />

    </div>
    
    <div class="email">
      <label id="email-label" for="email">Email:</label><br>
      <input
        type="email"
        name="email"
        id="email"
        class="form-control"
        placeholder="Enter your Email"
        required
      />

Thanks alot!!!
I did that to email and age as well and that solved both of my problems.

1 Like

Good job working through it and debugging! That’s a lot of what writing real software is. :slight_smile:

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