Survey Form #10 again

Hi !

I’ve been learning on FCC for some time now, and I’ve tried the Survey form.
All tests passed, except #10… I always get this : “#name-label is not defined : expected null to not equal null
AssertionError: #name-label is not defined : expected null to not equal null”.
I’ve spent most of the day reading and trying solutions given here, but none of them worked… :confused:
I guess I need personnalized help, so I came here :slight_smile:

Hello and welcome to the FCC community~!

Unfortunately, the link you have provided is for the FCC Test Suite pen. We need the link to your project pen. :slight_smile:

My bad. Real newbie here :smiley:

Okay, it looks like the issue is that your <label> elements wrap the text, but not the <input> elements. Your inputs should be nested within the labels.

Thanks for your answer !
Do you mean, like this ?

<label for="name" id="name-label">Nom<input id="name" type="text" name="name" placeholder="Nom" required ></label>
 <label for="email" id="email-label">Email:<input type="email" id="email" name="email" required placeholder="exemple:"></label>

It doesn’t seem to work :frowning:

That is good, yes! Now, you’re missing a couple of brackets on your name input, which is causing tests to fail.

May I ask you where, exactly ?
I’ve been trying for 30m now, and I still don’t get it :confused:

Simply adding the appropriate label ids to your codepen made the tests pass for me. <label for="name" id="name-label"> I don’t see any ids on the labels currently.

I understood why I failed every time…
I was working on line 34 and around - when I tried at line 11, it worked !
I guess I started the form in a wrong place…
Anyways, I thank you VERY much ; it was getting me mad :smiley: