<html>
<body>
<form action="https://www.w3schools.com/action_page.php" id="carform">
Firstname:<input type="text" name="fname">
<input type="submit">
</form>
<br>
<select name="carlist" form="carform">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
<p>The drop-down list is outside the form element, but should still be a part of the form.</p>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_select_form by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:09:59 GMT -->
</html>