Learn HTML Forms by Building a Registration Form - Step 17

Tell us what’s happening:
Describe your issue in detail here.
Sorry for bother you guys ,
i’m stuck here,i need some help for solove this,
i think is nothing wrong here, but cant pass it ,
hope can take hins here ,
thank you so much
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 for="first-name" /></label>
        <label>Enter Your Last Name: <input for="last-name" /></label>
        <label>Enter Your Email: <input for="email" /></label>
        <label>Create a New Password: <input for="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/108.0.0.0 Safari/537.36 Edg/108.0.1462.46

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

Link to the challenge:

You overdid it i dont think you needed for elements

1 Like

It looks like you are trying to create a registration form in HTML and CSS. However, there are a few issues with your code.

In your HTML code, you have input elements without any type specified. You need to specify the type of input element to make sure the form works correctly. For example, if you are prompting a user for their First Name, you would use

<input type="text" for="first-name"/>. 

In your CSS code, you need to specify the width and height for the form elements. You can use the width and height properties to set the size of the elements.

Finally, you need to specify the action attribute in the form element itself. The action attribute specifies the URL of the page where the form data will be sent when the form is submitted.

Once you have resolved these issues, your form should be working correctly.

Please do not make recommendations if you have not understood that this person needs help with an fCC exercise and not with a general question. Your advice will mislead and misdirect the OP in this case as the only thing this step needs is an input element without any attributes.

1 Like

I apologize if I have caused you any inconvenience.

2 Likes

yes , at beginnig,i just only type:
Enter Your First Name:
but it dosen’t work,so i take a look here ,hope can find some solution,
and i saw many helper text like that ,then i follow that,
so that why you saw my content like this,hhhhh

never mind, thanks for trying to help^^

thanks,there is so mant different answer ,make me little bit confusing, thanks for help :slight_smile:

1 Like

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