Question on Build a Survey Form Syntax

Ok, so my original code for step 22 ( Your #name-label should contain text that describes the input.) is showing as incorrect:

  <input placeholder="Enter Name here">
  <label id="name-label" label="name-label">
    </input>
  </label>

I found this code on stack overflow, and it works:

<label id="name-label">Enter Name<input id="name" type="text" requiered placeholder="name"/></label>

Could someone please explain the difference to me? I am genuinely confused why the stack overflow code works, but my code does not fulfil the requirement.

Thanks in advance :0)

Welcome to the forum @tjzwijac98

The forward slash is not in the correct spot.

I edited your post so the code correctly formats on the forum.

Happy coding