Learn HTML Forms by Building a Registration Form - Step 17

Tell us what’s happening:
the code was not passing what’s the issue please someone explain

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"/></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 (Windows NT 10.0; Win64; x64) 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:

Remove all the type attributes you added to the new input elements.

i removed but still it not passing

What does the hint say? Also pls post the new code.


i attached as an image please look onto that

I still see a type attribute?

Also why did you delete the input tags?

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

the above one is the challenge description

Remove all type attributes and put space after each colon.
Email and password need space after colon.

ok i will try that and update

You should add four input elements to the fieldset element.

the above is the next challenge

This was your best attempt so far. The only problem was the type attributes you created. If you use this code without the type attributes then it will work.

still i don’t get it

What is an attribute?

Entering our first name

No, that is the text of the label element.

Here, see this post and then try to answer the question “what is an attribute”

input is an attribute here right

No input is the element.
Try again? What did that post say was the attributes?

Please explain it to me

is label is an attribute here right