Learn HTML Forms by Building a Registration Form - Step 16

Tell us what’s happening:
Describe your issue in detail here.

This is the error I’m getting.

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

How do I deal with it?

  **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 action='https://register-demo.freecodecamp.org'>
    <fieldset>
      <label for="fname">Enter Your First Name: <input type="text"></label>
      <label for ="lname">Enter Your Last Name: <input type="text"></label>   
      <label for='mail'>Enter Your Email: <input type="email"></label>         
      <label for="pword">Create a New Password: <input type="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/104.0.5112.81 Safari/537.36

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

Link to the challenge:

You’re on the right track but you’ve put too much code in.
They just wanted an input element <input> (no other attributes needed)

Changed to <input> but my code still does not pass.

And I’ve tried to follow the error message below:
You should add the first input after the label text Enter Your First Name: , and include a space after the colon.

Please post your most recent code after updates. Use the code tool to make sure it shows up on the forum (the code tool is the one left of the smiley Emoji tool in the editing tool bar)

Here’s what the code looks like now. This is the only area I’m having trouble with, and that has changed.

<label>Enter Your First Name: <input></label>
<label>Enter Your Last Name: <input></label>   
<label>Enter Your Email: <input></label>         
<label>Create a New Password: <input></label>    

Read from another person’s post that this worked for them, but I can’t seem to get it to work for me.

Here’s the link to that person’s post: What should I do? "Nest an input element within each label. Be sure to add each input after the label text, and include a space after the colon." - #5 by nscagan

Your code worked for me. Maybe your browser is causing an issue? Try Chrome if you haven’t yet.

I’ll try change to a different browser.
I’m on Brave. All was well in the previous lessons.
Now it won’t go past this.

Thanks for your help.

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