Registration Form Step 30 (Responsive Web Design)

Step: Nest the select element within a label element with the text How did you hear about us? . The text should come before the select element.

I’m not sure what’s wrong with my code:

<label>How did you hear about us?

Error: You should nest only the select element within a label element.

Looks like your alignment is way off. To nest elements, you only have to tab over once. Option is tabbed over properly to next within Select, but Select is tabbed over too far, however, the closing Select lines up properly underneath it. So if you look at your closing Label, it doesn’t line up under any other element. Try deleting all your extra tabs and making sure your elements line up properly under each other.

I know that sounds weird, but blank spaces matter in coding.

I tried that and it didn’t work. Tried resetting the challenge and it worked. Thanks!

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