Learn HTML Forms by Building a Registration Form - Step 15

Tell us what’s happening:

Not sure why my code didn’t pass. the rest of the codes work but not the second one.
FEEDBACK: The second label should have the text Enter Your Last Name:.

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>Enter Your First Name:</label>
      </fieldset>
      <fieldset>
      <label>Enter Your Last Name:</label>
      </fieldset>
      <fieldset>
      <label>Enter Your Email:</label>
      </fieldset>
      <fieldset>
      <label>Create a New Password:</label>
      </fieldset>

<!-- User Editable Region -->

    </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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 15

You have modified your code. You didn’t need fieldset tags for each label. You only need one fieldset opening tag before your labels and one fieldset closing tag after your labels. Remove the extra fieldset tags.
@cjabarofficial

I’ll try and let you know. Thanks.

1 Like

Your welcome. Best of luck!

Awesome! It worked well.

1 Like

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