Learn HTML Forms by Building a Registration Form - Step 16

Tell us what’s happening:


Sorry, your code does not pass. Hang in there.


You should add four input elements to the fieldset element.

Describe your issue in detail here.

Where should the inputs be ?
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action='https://register-demo.freecodecamp.org'>
        <label input>Enter Your First Name:</label>
        <label input>Enter Your Last Name:</label>
        <label input>Enter Your Email:</label>
        <label input>Create a New Password:</label>
/* 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/ Safari/537.36

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

Link to the challenge:

You have incorrectly placed the input there, the challenge says that you have to place an input tag inside the label tags. Then it also states that you have to put the input tag after the text that is written in the label, i.e., Enter your first name: , Enter your last name: enter your email: , and, create a new password: .
so we have to add the input tag after the “:” of every label
Thus your code should look like

1 Like

instead of posting code, 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.

You should just put Enter your first name: then <> and inside the <> /input
for each of the four the input needs to be blank with no attributes.
I Hope this helps you.
And dont forget the space after the :

okay, understood! Wont do it again

1 Like

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