Learn HTML Forms by Building a Registration Form - Step 38

Tell us what’s happening:
Buenas, me dice que tengo que agregar profile-account pero esta ahi, me confunde bastante

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form method="post" action='https://register-demo.freecodecamp.org'>
        <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>
        <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>Upload a profile picture: <input type="file" /></label>
        <label>Input your age (years): <input type="number" min="13" max="120" /></label>
        <label>How did you hear about us?
            <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> Provide a bio:
       <input id="profile-picture"> 
          <input id="age">
          <input id="referrer"> 
          <input id="bio">
          <textarea> </textarea>
      <input type="submit" value="Submit" />
/* 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/ Safari/537.36

Challenge: Learn HTML Forms by Building a Registration Form - Step 38

Link to the challenge:

Restart step. Don’t add other html elements. For ‘label’ elements use the ‘for’ attribute, and for ‘input’ elements use the ‘id’ attribute:
<label for="smth"><input id="smth"></label>
The ‘input’ id value must be the same as the corresponding ‘for’ value as shown in the example above. In the challenge, you have got four values: profile-picture, age, referrer and bio. Use them as values for ‘for’ and corresponding ‘id’ attributes. For example, for ‘input’ element with ‘type’ attribute set to ‘file’ you should add ‘id’ attribute set to 'profile-picture. The same value goes for the ‘for’ attribute in the opening ‘label’ tag, before this ‘input’ element:

<label for="profile-picture"><input id="profile-picture"></label> .....this is not the final solution!

Repeat this approach for the following:

  • label and corresponding ‘input’ element with the type attribute set to ‘file’ (‘profile-picture’)
  • label and corresponding ‘input’ element with the type attribute set to ‘number’ (‘age’)
  • label and corresponding ‘select’ element (‘referrer’)
  • label and corresponding ‘textarea’ element (‘bio’)

I personally did not understand what to do here, nothing works

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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