Learn HTML Forms by Building a Registration Form - Step 14

I’m having problems With my code . What am I doing wrong?

Tell us what’s happening:

  </fieldset>
  <label>Name</label>
  <fieldset></fieldset>
   <label>Email</label>
  <fieldset></fieldset>
  <label>Password</label>
</form>

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>

<!-- User Editable Region -->

    <form method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>

      </fieldset>
      <label>Name</label>
      <fieldset></fieldset>
       <label>Email</label>
      <fieldset></fieldset>
      <label>Password</label>
    </form>

<!-- User Editable Region -->

  </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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 14

Hi there! The instructions is asking to add four label element to the first fieldset. You haven’t added label elements to it. Reset the challenge step and follow the instructions.

1 Like

Hey Buddy, Here you need to add these labels & add one more then move them in your first fieldset and here you no need to put text inside it

Hope You Understand !!

1 Like

Like this ?

    <form method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>
<label>Name</label>
    <label>Email</label>
 <label>Password</label>
      </fieldset>
      
      <fieldset></fieldset>
 
      <fieldset></fieldset>

    </form>

Don’t add text content to the label element, just create four label elements within the first fieldset

Buddy, Here you need to put 4 labels inside your fieldset

Name, Email, Password shouldn’t be there.

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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