Learn HTML Forms by Building a Registration Form - Step 16

Tell us what’s happening:
I don’t understand the problem here, I have done what the steps ask me to. But I can keep getting “You should add the first input after the label text Enter Your First Name:, and include a space after the colon.” over and over again, no matter what I try.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action='https://register-demo.freecodecamp.org'>
      <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>
      <fieldset></fieldset>
      <fieldset></fieldset>
    </form>
  </body>
</html>
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

label {
  display: block;
  margin: 0.5rem 0;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Challenge: Learn HTML Forms by Building a Registration Form - Step 16

Link to the challenge:

how many spaces did you include, just one?

How many spaces do you see? I do not see one space. Not that it makes any difference in how the HTML is displayed.

Maybe it doesn’t seem like it, I checked right now, just one space after, and it still doesn’t work, have even deleted the whole field set and did it again and still happening, don’t know if it’s a bug or something with my browser

Actually you have too many spaces. You must use exactly one space. No more.

If you are still stuck please share the new code you are using.

(post deleted by author)

This is the code i’m using still same error…

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action='https://register-demo.freecodecamp.org'>
      <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>
      <fieldset></fieldset>
      <fieldset></fieldset>
    </form>
  </body>
</html>

Your solution as quoted here works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

I tried it on Opera and it worked! Thank you so much! I was really frustrated by that problem.

1 Like