Learn HTML Forms by Building a Registration Form - Step 31

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

  **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>Enter Your First Name: <input type="text" required /></label>
      <label>Enter Your Last Name: <input type="text" required /></label>
      <label>Enter Your Email: <input type="email" required /></label>
      <label>Create a New Password: <input type="password" pattern="[a-z0-5]{8,}" required /></label>
    </fieldset>
    <fieldset>
      <label><input type="radio" name="account-type" /> Personal Account</label>
      <label><input type="radio" name="account-type" /> Business Account</label>
      <label>
        <input type="checkbox" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
      </label>
    </fieldset>
    <fieldset>
      <label>Upload a profile picture: <input type="file" />How did you hear about us?<select>
        <option></option>
        <option></option>
        <option></option>
        <option></option>
        <option></option>
      </select>
      </label>
      <label>Input your age (years): <input type="number" min="13" max="120" />
      </label>
      
    </fieldset>
    <input type="submit" value="Submit" />
  </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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

I’m a little stuck on this particular step. As you probably can see with the coding, I did in fact put the select element and the option elements within the select element and put them within the label element, wrote the text and put it before the select element and it still comes out wrong. Where am I hung up or what step am I overlooking?

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Yes sir. I had just posted my issue in a reply but basically I’m stuck in step 31 of the registration form assignment. I did in fact put the selection element and the option elements within the aforementioned element and placed them within the label element. Plus I wrote the text out and placed it before the selector element as was instructed but somehow it still keeps coming out wrong. Where am I confused at? What did I overlook?

Hi

I was stuck at the same step, then i came for help like you. i found your problem, an opening tag is missing label at the next line:

you must close the label tag of the age and then open the one that contains the select

<label>Upload a profile picture: <input type="file" /></label>
<label>How did you hear about us?
  <select>
     <option></option>
     ...
  </select>
</label>

I hope I’ve helped. sorry for my English. Cheers