Learn HTML Forms by Building a Registration Form - Step 17

Tell us what’s happening:
Describe your issue in detail 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 for="first-name">Enter Your First Name: <input type="text"></label>
       <label>Enter Your Last Name: <input type="text"></label>
       <label>Enter Your Email: <input type="text"></label>
       <label>Create a New Password: <input type="text"></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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

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

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

This is the instruction " Nest an input element within each label . Be sure to add each input after the label text, and include a space after the colon."
And here is my code -

Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: I don't know where am i doing wrong.

I know what the instructions say. I don’t know what about the instructions you don’t understand. Do you know what an input element is? Do you know what a label element is?

yes i do know input and label. I just don’t know what’s the error in my code.

Hint say this - ’ You should add the first input after the label text Enter Your First Name: , and include a space after the colon.’

I’m not sure why you are adding stuff that’s not in the instructions? Doing that often confuses the tests.

Not in the instructions

Not in the instructions

Not in the instructions

Not in the instructions

Not in the instructions

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.