Learn HTML Forms by Building a Registration Form - Step 17

Tell us what’s happening:
Well, please help me pass this step. I am unable to figure out what is the mistake in the code.

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>Enter Your First Name:  
          <input type="text">
        <label>Enter Your Last Name:  
          <input type="text">
        <label>Enter Your Email:  
          <input type="email">
        <label>Create a New Password:  
          <input type="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:

The tests don’t want you to add a type attribute to the inputs, so remove them. In general, don’t add anything that the instructions don’t ask you to add.

Also, the tests want the input to be on the same line as the opening label tag.

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