Learn HTML Forms by Building a Registration Form - Step 35

Tell us what’s happening:

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.
i dont know where my code goes wrong…please help

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 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>

<!-- User Editable Region -->

      <fieldset>
        <label>Upload a profile picture: <input type="file" /></label>
        <label>Input your age (years): <input type="number" min="13" max="120" />How did you hear about us?<select></select></label>
        <select>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
        </select>
      </fieldset>


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 35

you must create a unique label element before the select element. I hope you understand me, I’m using Google Translate

1 Like

Hello @terciathekgo !

As @Chrs has offered the guidance to enter a label element opening tag above the select with the provided text How did you hear about us?

The closing label tag should be entered after the closing select tag.

This should help you pass the step.

Please remember to check Solution by @Chrs as I am just adding a bit of clarification to the good guidance provided.

Keep up the good progress! :sun_with_face:

1 Like

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