Design a Registration Form - Step 31

Tell us what’s happening:

Responsive Web Design Certification,
Design a Registration Form .
Nest the select element with its option elements within a label element with the text “How did you hear about us?” the text should come before the select element. That part I have done required but I seem to hit a stop there as it keeps coming up with. You should nest only the select element within a label element. What is missing or what is wrong in my code.

Your code so far

<<!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://freecodecamp.org" method="post">
      <fieldset>
        <label for="first-name">Enter Your First Name:
          <input id="first-name" type="text" name="first-name" required>
        </label>
        <label for="last-name">Enter Your Last Name:
          <input id="last-name" type="text" name="last-name" required>
        </label>
        <label for="email">Enter Your Email:
          <input id="email" name="email" type="email" required>
        </label>
        <label for="new-password">Create a New Password:
          <input id="new-password" type="password" name="new-password" pattern="[a-z0-9]{8,}" required>
        </label>
      </fieldset>

      <fieldset>
        <legend>Account type (required)</legend>
        <label for="personal-account">
          <input id="personal-account" type="radio" name="account-type" value="personal" checked>
          Personal
        </label>
        <label for="business-account">
          <input id="business-account" type="radio" name="account-type" value="business">
          Business
        </label>
      </fieldset>

      <fieldset>
  <label>
    <input id="terms-and-conditions" type="checkbox" name="terms-and-conditions" required>
    I agree to the terms and conditions
  </label>

  <label>How did you hear about us?
    <select name="referrer" required>
      <option value="">(select one)</option>
      <option value="1">freeCodeCamp News</option>
      <option value="2">freeCodeCamp YouTube Channel</option>
      <option value="3">freeCodeCamp Forum</option>
      <option value="4">Other</option>
    </select>
  </label>
</fieldset>!-- file: index.html -->

<!-- User Editable Region -->

<!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://freecodecamp.org" method="post">
      <fieldset>
        <label for="first-name">Enter Your First Name:
          <input id="first-name" type="text" name="first-name" required>
        </label>
        <label for="last-name">Enter Your Last Name:
          <input id="last-name" type="text" name="last-name" required>
        </label>
        <label for="email">Enter Your Email:
          <input id="email" name="email" type="email" required>
        </label>
        <label for="new-password">Create a New Password:
          <input id="new-password" type="password" name="new-password" pattern="[a-z0-9]{8,}" required>
        </label>
      </fieldset>

      <fieldset>
        <legend>Account type (required)</legend>
        <label for="personal-account">
          <input id="personal-account" type="radio" name="account-type" value="personal" checked>
          Personal
        </label>
        <label for="business-account">
          <input id="business-account" type="radio" name="account-type" value="business">
          Business
        </label>
      </fieldset>

      <fieldset>
  <label>
    <input id="terms-and-conditions" type="checkbox" name="terms-and-conditions" required>
    I agree to the terms and conditions
  </label>

  <label>How did you hear about us?
    <select name="referrer" required>
      <option value="">(select one)</option>
      <option value="1">freeCodeCamp News</option>
      <option value="2">freeCodeCamp YouTube Channel</option>
      <option value="3">freeCodeCamp Forum</option>
      <option value="4">Other</option>
    </select>
  </label>
</fieldset>

<!-- User Editable Region -->

/* 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/147.0.0.0 Safari/537.36

Challenge Information:

Design a Registration Form - Step 31

You have changed the seed code. I suggest you reset the step and only add what is asked.

ok will reset back to the step.