Html registration form step 30

the challenge says to nest a select element within a label element and this is what I did:

<label>Input your age (years): <input type="number" min="13" max="120"/>
			  </label>
        <label>
          How did you hear about us?
          <select>
            <option>one</option>
            <option>two</option>
            <option></option>
            <option></option>
            <option></option>
          </select>
        </label>

Clicking on “check your code” gives the hint " You should place the text before the select element." But as you can see the text IS before the select element. What am I doing wrong? (note: the html correctly presents a select box with label in the preview side panel)

Nevermind, it turns out the checker let it pass if I removed the newlines like so:

<label>Input your age (years): <input type="number" min="13" max="120"/>
			  </label>
        <label>How did you hear about us?<select>
            <option>one</option>
            <option>two</option>
            <option></option>
            <option></option>
            <option></option>
          </select>
        </label>

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