Building a registration form: Step 32

Give the first option a value of "" , and the subsequent option elements value attributes from 1 to 4

What am I missing here? I’ve done what was asked, yet I keep getting an error that reads I need to add “” to the value of the first option. Thank you for any assistance.

</label>
        <label>How did you hear about us?
          <select>
            <option>(select one) <value=""> </option>
            <option>freeCodeCamp News <value="1"> </option>
            <option>freeCodeCamp YouTube Channel <value="2"></option>
            <option>freeCodeCamp Forum <value="3"></option>
            <option>Other <value="4"></option>
          </select>
        </label>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

It helps if you use the Ask For Help button so that your code gets formatted and a link to the challenge is included in your post.


You have this as some sort of separate element. Instead, you should be adding the value attribute to the opening option tag.

YEP! I got it! Thank you Jeremy! Maybe I should take a break! :joy:

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