Learn HTML Forms by Building a Registration Form - Step 17

Tell us what’s happening:
Describe your issue in detail here.
Kinda lost on this one. I feel the directions for this step are bad. I looked at others posts and still couldn’t figure it out. Lmk please what I am doing wrong, thank you.
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 method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label for="First Name">Enter Your First Name:<input id="First Name"></label>
        <label for="Last Name">Enter Your Last Name:<input id="Last Name"></label>
        <label for="email">Enter Your Email:<input id="email"</label>
        <label for="New Password">Create a New Password:<input id="New Password"></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/107.0.0.0 Safari/537.36

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

Link to the challenge:

You are almost there but there are some things you forgot.

  1. No need to insert an id in the input element if you are not asked to do so.
  2. Your syntax for the input element should be written correctly. (on the last two inputs there is no (/>) sign .
<input />

Happy coding!

What should I put instead of Id. Directions just say put input after text, but everyone else seems to use ID within the input or use something else.

Still doesnt work. I feel if the directions were more clear about the input part maybe this wouldnt be an issue?
I went back to the cat project and they use ids,values, types, so idk even which one I should be using for this. I just used Ids because I saw a few use it and they said it worked.

This really isnt complicated and shouldnt be, so I dont see why I been stuck on this step for half a day. I have done it they way people have passed supposedly and still doesnt work so I need to know what else I need to fx

opening up new thread with the same question

Tell us what’s happening:
Describe your issue in detail here.

Your code so far
Been having issues with this since yesterday. I checked cat photo 56 and it doesn’t help me. Just shows me that I am doing it right.

For input do I use type? ID? Value? no idea and directions dont say.
Some people say Id and others say no need but dont tell you what to replace it with.

Why dont the directions tell me what to do?

<!-- 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 method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label>Enter Your First Name: <input id="First Name"></label>
        <label>Enter Your Last Name: <input id="Last Name"> </label>
        <label>Enter Your Email: <input id="Email"></label>
        <label>Create a New Password: <input id="New Password"></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/107.0.0.0 Safari/537.36

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

Link to the challenge:

It keeps saying put my code after the label text… which I have done every single time.

They just want a plain input element (no id attribute)

1 Like

ok so how should that look?
I took Id off and still doesnt work and now it doesnt look right. Took away the space field too on the webpage.
This: <input “first name”>
Doesnt work…

omg I figured it out.

All it wants is input added with no attributes. All the examples I saw and the cat project had attributes so I kept trying to add attributes. Thanks for the help

1 Like

in future do not create a duplicate thread for the same topic, just use the one you have to ask questions or update the code etc.
The duplicates have been merged.