Step 30 building a registration

Tell us what’s happening:
Describe your issue in detail here.
they told me that You should nest only the select element within a label element.

i didn’t get it could you please help

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" 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" /></label>
       <label>Input your age (years): <input type="number" min="13" max="120" />
      <label>How did you hear about us?
       <select>  
         <option></option>
         <option></option>
         <option></option>
         <option></option>
         <option></option>
       </select> </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 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 30

Link to the challenge:

Your HTML is fine. I believe the tests aren’t working properly with Safari on this one. If you switch to a different browser it will pass.

i don’t know where is the error why it didn’t accepted

could you please re-check the label and the error msg

Like I said above, your HTML is fine, it is passing for me. Did you switch to a different browser?

yep i tried to use edge

Hmm…I don’t know what to tell you then. Maybe you accidentally changed something from the original HTML you pasted above? You can paste your HTML in here again and I’ll be happy to take a look. Otherwise, just skip this one knowing you got it right and move on to the next step. Skipping a step won’t affect your ability to get the certificate at the end.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.

1 Like

htm code

<!DOCTYPE html>
<html>
  <head>
    <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" 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" /></label>
        <label>Input your age (years): <input type="number" min="13" max="120" /></label>How did you hear about us?
        <select>  
          <option></option>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
        </select> </label> 
      </fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>

thank you for checking my problem bro

So the version you just pasted in is different than the original one.

Original:

<label>How did you hear about us?
       <select>  
         <option></option>
         <option></option>
         <option></option>
         <option></option>
         <option></option>
       </select> </label>

New:

How did you hear about us?
        <select>  
          <option></option>
          <option></option>
          <option></option>
          <option></option>
          <option></option>
        </select> </label> 

Do you see what you are missing?

it was messing
i ve edit it

solution

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