Lesson 29 Step 36

Topic: Learning HTML form by building Registration form

Hello Coders,

I am currently stuck on this step and don’t understand what I’m doing wrong.
The error it’s giving me is “You should give the first option element the text (select one) .”

Please give me some insight on what I can do pass this step. I listed my current codes below.

Thanks in advance!

<fieldset>
        <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?
          <select>
            <option>(select one)
</option>
            <option>freeCodeCamp News
</option>
            <option>freeCodeCamp YouTube Channel
</option>
            <option>freeCodeCamp Forum

</option>
            <option>Other
            </option>
          </select>
        </label>
      </fieldset>

Welcome back to the forum @shin0bi92

I edited your post so the code will format correctly in the forum.

Try removing the line breaks and white space before the option closing tags.

Happy coding

Thanks for that. I tried what you suggested but it didn’t work. Do you have any other suggestions?

Try formatting it so that each option element is on one line, like this:

<option>Text1</option>
<option>Text2</option>

Happy Coding

Tried it before, it didn’t work. Have you pass this step yet?

I did, that’s exactly how I got it

Hi @shin0bi92

So the forum can assist please post your full code.

Use the following method to post code to the forum:

  1. On a separate line type three back ticks.
  2. On a separate line paste your code.
  3. On the last line type three back ticks. Here is a single back tick `

Happy coding