Responsive Web | Step 15

Hi Everyone,

I’m having difficulty getting this bit of code to pass and am not understanding what is wrong with the code. Can anyone assist me?

      <fieldset>
        <label>Enter Your First Name: <input></label>
        <label>Enter Your Last Name: <input></label>
        <label>Enter Your Email: <input></label>
        <label>Create a New Password: <input></label>
      </fieldset>

Because input is a self closing element, you should try adding a / make it look similar to <input />

Hi, I’ve already tried that and it still doesn’t work.

   <fieldset>
        <label>Enter Your First Name: <input /></label>
        <label>Enter Your Last Name: <input /></label>
        <label>Enter Your Email: <input /></label>
        <label>Create a New Password: <input /></label>
      </fieldset>

Try placing it after the label. <label> </label> <input /> but make sure there is a space after the ': ’ in each part

Try to add the attributes of the input type="" name="" and fix the indentation

For example:
<fieldset>
  <label>Enter Your First Name: <input type="text" name="firstName"></label>
</fieldset>

Thanks guys, i’ll try now…

hey,

I’ve done everything you guys mentioned and I just don’t get it… This is the first thing that’s not making any sense.

You need to add type and name of the input

<fieldset>
  <label>Enter Your First Name: <input  type="text" name="firstName"></label>
  <label>Enter Your Last Name: <input type="text" name="lastName"></label>
  <label>Enter Your Email: <input type="text" name="email"></label>
  <label>Create a New Password: <input type="password" name="password"></label>
</fieldset>

I’ve done this the exact same way and the code doesn’t go through. I tried to add type hours ago.

      <fieldset>
        <label>Enter Your First Name: <input type="text" name="firstname"></label>
        <label>Enter Your Last Name: <input type="text" name="lastname"></label>
        <label>Enter Your Email: <input type="text" name="email"></label>
        <label>Create a New Password: <input type="password" name="password></label>
      </fieldset>

You forgot to close the Password input,

I even tried to run your code and it doesn’t go through either, so I know i’m not crazy :smile:

Sorry, that was a typo. I had it closed. Please see again. Doesn’t work.

<fieldset>
        <label>Enter Your First Name: <input type="text" name="firstName"></label>
        <label>Enter Your Last Name: <input type="text" name="lastName"></label>
        <label>Enter Your Email: <input type="text" name="email"></label>
        <label>Create a New Password: <input type="password" name="password"></label>
      </fieldset>
1 Like

This is step 15? because step 15 is " Take all the elements currently located within the main element and nest them in a section element." it’s not about inputs, share with us the step and all the code

Try restarting your steps. I have noticed multiple times that that when I am having trouble with the code, simply restarting it will allow me to complete it… Your code should read as such <fieldset> <label>Enter Your First Name: <input/></label> <label>Enter Your Last Name: <input/></label> <label>Enter Your Email: <input/></label> <label>Create a New Password: <input/></label> </fieldset>

Yes. I’m currently working on (New Responsive Web Design | Learn HTML Forms by Building a Registration Form - step 15. Here are the instructions:

Step 15
Nest an input element within each label. Be sure to add each input after the label text, and include a space after the colon.

I even caught the extra space you made between <input type="text" in the code you sent for the first name nested element and fixed it. still nothing. Is the code you sent to me passing? if so, please advise.

This code is works fine without any problem

<fieldset>
  <label>Enter Your First Name: <input></label>
  <label>Enter Your Last Name: <input></label>
  <label>Enter Your Email: <input></label>
  <label>Create a New Password: <input></label>
</fieldset>

Try to clear the cash of the browser

Hi, I’ve meticulously done this as well. I even highlight my work to look at spacing, closing tags and monitor the console

      <fieldset>
        <label>Enter Your First Name: <input/></label>
        <label>Enter Your Last Name: <input/></label>
        <label>Enter Your Email: <input/></label>
        <label>Create a New Password: <input/></label>
      </fieldset>

Yea, I think I will, because this just doesn’t make any sense. I am, by no means the smartest man in the room, but I’d like to think I have some form of understanding :sweat_smile:

I hope it will work for you :slightly_smiling_face:

So, I can say with complete certainty that the correct answer is the following:

      <fieldset>
        <label>Enter Your First Name: <input /></label>
        <label>Enter Your Last Name: <input /></label>
        <label>Enter Your Email: <input /></label>
        <label>Create a New Password: <input /></label>
      </fieldset>

I confirmed this by reviewing lesson 16. I think this may be a browser issue and if so, FreeCodeCamp needs to look into this immediately, especially since multiple people are complaining about the same thing. I think they may have a bug on their end. I can’t believe I second guessed myself and started putting things, although necessary, not needed for the specific lesson :neutral_face:

I will attempt to update my browser or at most, reinstall.

2 Likes