Test Sorry, your code does not pass. Try again. Hint The fourth label element should have a for attribute with a value of bio. Step 38 Registration Form

Registration Form

Registration Form

Please fill out this form with the required information

Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Personal Account Business Account I accept the terms and conditions Upload a profile picture: Input your age (years): How did you hear about us?

May you show your code please?

Registration Form

Registration Form

Please fill out this form with the required information

Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Personal Account Business Account I accept the terms and conditions Upload a profile picture: Input your age (years): How did you hear about us?

put ``` before and after the code

<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>
       <label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
       <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
       <label for="terms-and-conditions">
         <input id="terms-and-conditions" type="checkbox" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
       </label>
     </fieldset>
     <fieldset>
       <label for="profile-picture" >Upload a profile picture: <input type="file" id="profile-picture" /></label>
       <label for="age">Input your age (years): <input type="number" min="13" max="120" id="age"/></label>
       <label for="referrer">How did you hear about us?
         <select id="referrer">
           <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>
       </label>

       <label for="bio">Provide a bio:
         <textarea id ="bio"></textarea>
       </label>
         
       
         
     </fieldset>
     <input type="submit" value="Submit" />
   </form>
 </body>
</html>```

You are not closing the <select> tag

Thank you so much! Very appreciated!

1 Like