Answers for "<select html"

21

html select list

<label for="cars">Choose a car:</label>

<select id="cars">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>
Posted by: Guest on April-13-2020
3

html select

<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="n/a" disabled>unavailable</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes" selected>Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>
Posted by: Guest on March-20-2021

Browse Popular Code Answers by Language