Learn HTML Forms by Building a Registration Form - Step 17

OK - I have looked through the previous posts and can’t spot what I am doing wrong! The " Hint You should add the first input after the label text Enter Your First Name:, and include a space after the colon" - I thought I had - clearly not because the code is not working.

I think I have nested an input element in the label and given it an attribute and an id as well - I checked and am sure there is a space after the colon - so please break it down for me - what is missing - it is driving me crazy here!!!

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>Enter Your First Name: <input type="text" id="first-name"</label>
        <label>Enter Your Last Name: <input type"text" id="last-name"</label>
        <label>Enter Your Email: <input type="text" id="email"</label>
        <label>Create a New Password: <input type="text" 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 have too much code which they didn’t ask for.
You just need a plain old input element <input>

1 Like

The instruction doesn’t require adding any attribute to the ‘input’ elements.

1 Like

…feeling a little silly now - note to self - "read the instructions (& only do what the instructions tell you!!)

Thanks!
x

…feeling a little silly now - note to self - "read the instructions (& only do what the instructions tell you!!)

Thanks!
x

1 Like

Don’t worry about. Everyone does it at least once. (Including me)

1 Like