Learn HTML Forms by Building a Registration Form - Step 34

Can anyone tell me what I’m doing wrong here? The error tells me to add 5 Option elements inside the Select element, but near as I can tell I already have. What am I missing?

<!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'>
      <fieldset>
        <label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
        <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
        <label for="email">Enter Your Email: <input id="email" type="email" required /></label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
      </fieldset>
      <fieldset>
        <legend>Account type (required)</legend>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" checked /> Personal</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business</label>
      </fieldset>
      <fieldset>
        <label>Upload a profile picture: <input type="file" /></label>
<select>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
        </select>
        
        <label>Input your age (years): <input type="number" min="13" max="120" /></label>
<select>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
        </select>
        
      </fieldset>

Hi @qwasrb2 !
Can you post your actual code instead of a screenshot?

add select element <select></select> and inside the select element add 5 option element <option></option>

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 (').

you should have one select, not two, delete the one below Upload a profile picture, and also the options inside it. If you delete that one you will pass.

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