html create drop down list
snippet in html

html create drop down list


   <title>Selection Inputs</title>
     <label for="selector"> <!-- Can add label if want -->
       <p>A "select" element allows users to input from a selection:</p>
       <select id="selector"> <!-- Use "select" to create object -->
         <option>Option 1</option> <!-- Add all applicable options -->
         <option>Option 2</option>
         <option selected>Option 3</option> <!-- add selected to change default from first option -->
         <optgroup label="Group"> <!-- To create nested options for categories use "optgroup" -->
           <option>Option 4</option>
           <option>Option 5</option>

how to create drop down list in html


<div class="dropdown">
  <button class="dropbtn">Dropdown</button>
<div class="dropdown-content">
    <a href="#">Link 
<a href="#">Link 2</a>
    <a href="#">Link 3</a>