drop-down list - <select> <option>

PHOTO EMBED

Fri Aug 12 2022 13:37:33 GMT+0000 (Coordinated Universal Time)

Saved by @fastoch #html

<!DOCTYPE html>
<html>
<body>

<h2>The select Element</h2>

<p>The select element defines a drop-down list:</p>

<form action="/action_page.php">
  <label for="cars">Choose a car:</label>
  <select id="cars" name="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="fiat">Fiat</option>
    <option value="audi">Audi</option>
  </select>
  <input type="submit">
</form>

</body>
</html>
content_copyCOPY

https://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_select