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'>

<!-- User Editable Region -->

      <fieldset>
        <label>Enter Your First Name: <input type="text"></label>
        <label>Enter Your Last Name: <input type="text"></label>
        <label>Enter Your Email: <input type="email"></label>
        <label>Create a New Password: <input type="password"></label>
      </fieldset>

<!-- User Editable Region -->

      <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/110.0.0.0 Safari/537.36

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

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

(You have not filled out the “Tell us what’s happening:” field above)

i did what the challenge is but still not clearing this challenge

I don’t think you followed the instructions though?

Nest an input element within each label . Be sure to add each input after the label text, and include a space after the colon.

I see you added a number of attributes to your input elements that were not requested?

i have done same thing

I didn’t understand.
If you have fixed the code and you are still stuck, please reply with your new code.

<fieldset>
        <label>Enter Your First Name: <input type="text"></label>
        <label>Enter Your Last Name: <input type="text"></label>
        <label>Enter Your Email: <input type="email"></label>
        <label>Create a New Password: <input type="password"></label>
      </fieldset>

this is you want to say

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

You still have attributes in your input element even though the exercise didn’t ask for any of them.

i finally get my mistake

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