Linebreak not working after dropdown in html

Tell us what’s happening:
I have tried using <br> to do a linebreak after a dropdown menu but it does not work. Below is the code for my dropdown menu that works but I cannot start a new line even with br.
Your code so far
<label for="dropdown" id="dropdown-label">Experience in Years</label> <select list="list" id="dropdown" required > <datalist> <option value="1">1</option> <option value="2">2</option> <option value="3+">3</option> <option value="3+">3+</option> </datalist>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36.

Challenge: Build a Survey Form

Link to the challenge:

1 Like

Hey! I think you’ve forgotten to close the select statement.

Add in </select> at the end and you should be on a new line without even needing to use <br>.

CodePen

1 Like

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