Learn HTML Forms by Building a Registration Form - Step 16

I have added input elements and yet I am being told to add four input elements to the fieldset element.

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 action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label <input> >Enter Your First Name:</label>
        <label <input> >Enter Your Last Name:</label>
        <label <input> >Enter Your Email:</label>
        <label <input> >Create a New Password:</label>
      </fieldset>
      <fieldset></fieldset>
      <fieldset></fieldset>
    </form>
  </body>
</html>
/* 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 (Linux; Android 9; itel W6002E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36

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

Link to the challenge:

You are not using correct syntax.

If you need to remember how to nest elements just look at all the code you have written so far.

Have you ever been asked to put an element inside an opening tag?

Attributes sure.
But elements?

Elements must start and end with angled brackets (or their opening tag and closing tags do)

This is an example of nesting. 3 elements are nested in the head element.

Now look at one of yours

Notice those > > angled brackets? That means you are trying to create an element within an opening tag.

I hope I have explained enough.

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