Learn HTML Forms by Building a Registration Form - Step 17

Tell us what’s happening:
Stuck here for a long time. I can’t pass this step. Please anyone help me. They told me:
“You should add the first input after the label text Enter Your First Name:, and include a space after the colon.”

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 method="post" action='https://register-demo.freecodecamp.org'>
        <label for="first-name">Enter Your First name:
        <input id="first-name" name="first-name">
        <label for="last-name">Enter Your Last Name: 
        <input id="last-name" name="last-name">
        <label for="email">Enter Your Email: 
        <input id="email" name="email">
        <label for="password">Create a New Password: 
        <input id="password" name="password">
/* 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; rv:107.0) Gecko/20100101 Firefox/107.0

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

Link to the challenge:

1.) You are supposed to add only a single space after the colon :
2.) You are not asked to add the id and name attribute to the input tags.

I would suggest you to reset the challenge and perform it again by just adding a space after the colon : and then a simple input tag without any attributes.

1 Like

Thanks a lot @kai1. It works. I shouldn’t think anything extra.

It’s good that you are thinking extra. You should think extra.

1 Like

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