Learn HTML Forms by Building a Registration Form - Step 16

can someone please tell me what’s wrong…I wrote the code right but the issue it didn’t validate…

<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>
<fieldset></fieldset>
<fieldset></fieldset>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

You need a closing tag for the input elements.

thank you but it still did’nt work

You don’t need closing tags for input elements. input elements have self-closing tags.

As for @rabbilextierra, try to solve it without adding the type first. Perhaps that may make the checker confused.

1 Like

[Mod edit: solution removed]

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

thanks bro I removed the “type=text” thing and it runs…

1 Like

sorry I’m new. joined yesterday. I’ll keep it in mind

2 Likes

Issue:" You should add the first input after the label text Enter Your First Name: , and include a space after the colon."

ps. I don’t know wtf the compiler is sayin’ while I wrote it right. Did I write the code right? please enlighten me.

  <form 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="email"></label>
     <label>Create a New Password: <input type="password"></label> 
    </fieldset>
    <fieldset></fieldset>
    <fieldset></fieldset>
  </form>

Link to the challenge:

We can’t see your code, you have to edit and copy/paste it, like this:

```type or paste code here```

Anyway, let’s say you have a label like this:

<label>An example label!</label>

What you need to do, is add an input inside the label, but after the text with a blank space between them, like this:

<label>An example label! <input/></label>

Do this for each label. :slight_smile:

sorry for the inconvience I already solved it. hehehe :smiling_face:

1 Like

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 (').