Nest the select element (with its option elements) within a label element

Class : Learn HTML Forms by Building a Registration Form
Step 31 : Nest the select element (with its option elements) within a label element with the text How did you hear about us? . The text should come before the select element.

Here’s my code,I thought i was doing right. nested select element within label and also add text after the element. but it didnt pass :see_no_evil:

        <label>How did you hear about us?
          <select>
            <option>1</option>
            <option>2</option>
            <option>3</option>
            <option>4</option>
            <option>5</option>
          </select>
        </label>

Test :
Sorry, your code does not pass. Don’t give up.

Hint : You should give the label element the text How did you hear about us?

I don’t see anywhere in the instructions that tell you to add numbers to the options. Always do exactly what the instructions tell you and no more.

UPDATE: Actually, I don’t think this is the cause of your error. Can you paste in your entire HTML?

1 Like

appreciate, i pass the class :joy_cat:

1 Like

Oh, cool, that was it I guess.

2 Likes

You should always follow instructions.

2 Likes

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