Skip to content

Instantly share code, notes, and snippets.

@mtsmfm
Created June 11, 2024 08:43
Show Gist options
  • Save mtsmfm/0e4d7c72231f3d6ab444d0aa6a878b18 to your computer and use it in GitHub Desktop.
Save mtsmfm/0e4d7c72231f3d6ab444d0aa6a878b18 to your computer and use it in GitHub Desktop.
Select test
<!DOCTYPE html>
<html>
<body>
<!-- Copied from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select -->
<label for="pet-select">Choose a pet:</label>
<select name="pets" id="pet-select">
<option value="">--Please choose an option--</option>
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="hamster">Hamster</option>
<option value="parrot">Parrot</option>
<option value="spider">Spider</option>
<option value="goldfish">Goldfish</option>
</select>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment