Learn HTML Forms by Building a Registration Form - Step 15

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

I can’t get my code correctly according to the checker and I don’t know what’s wrong with it.

Thank you in advance!
Step 15
Add the following text to the label elements:

  • Enter Your First Name:
  • Enter Your Last Name:
  • Enter Your Email:
  • Create a New Password:

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 method="post" action='https://register-demo.freecodecamp.org'>

<!-- User Editable Region -->

      <fieldset>
       <label for="first_name">Enter Your First Name:</label><br>
       <input type="text" id="first_name" name="first_name"><br>
       <label for="last_name">Enter Your Last Name:</label><br>
       <input type="text" id="last_name" name="last_name"><br>
       <label for="email">Enter Your Email:</label><br>
       <input type="text" id="email" name="email"><br>
       <label for="password">Create a New Password:</label><br>
       <input type="password" id="password" name="password">
      </fieldset>

<!-- User Editable Region -->

      <fieldset></fieldset>
      <fieldset></fieldset>
    </form>
  </body>
</html>
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 OPR/94.0.0.0

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

Link to the challenge:

your code is way more complicated than this step requires.
The original code in the editor was this:

        <label></label>
        <label></label>
        <label></label>
        <label></label>

And they just want you to fill these labels with the given text, one by one.
Don’t add anything else except the text.

Welcome to our community!
Where did you find the instruction to add input elements and all attributes such as ‘for’ and ‘id’ etc.?

Thank you @hbar1st and @DobarBREND for helping me! I was already thinking too many steps ahead :smiling_face_with_tear:

2 Likes