Help with my survey project (its very messy)

I keep getting this error and I cant seem to be able to fix it.

16. Inside the form element, I am presented with a button with id=“submit” to submit all my inputs.

The button with id=“submit” is not inside the form element : expected 0 to be above 0
AssertionError: The button with id=“submit” is not inside the form element : expected 0 to be above 0

Can you provide more infos like a codepen.io link? Or a piece of code? Thanks!

I cant put the link what should ido

add “//” before the link so we could help…

Are you sure that your <button> element is type="submit" ?

Copy a piece of your code here. Copy the <form> element and let’s see why you get this error.

//https://codepen.io/jonathanim/pen/drwaKb

Your problem is that you open a <div> before <form> element and you close the div inside the form. Close the big div after your close the form.

2 Likes

OMG your a genius. thank you lauren :slight_smile:

2 Likes

You have other problems even if the tests are not catching them. You are not closing the label elements. I should see something like below:

<label class="container">
  battle royale <input type="checkbox" value="1">
</label>

Also, what is <span class="checkmark"></span> for? It does not seem to change anything if I all the instances of it in your form.

1 Like

I was gonna edit the checkmark with other properties but decided not to do it and Forgot to remove them
:frowning:.

I was just following the w3school format.
and added those elements without really thinking what they are use for.

Thank you for the tips and feedback.
now I know what I have to work on.
closing tags and mostly paying attention to detail :sweat_smile:

thank you MR dawson