<select name="cars" id="cars" multiple>
  <option value="volvo1">Volvo1</option>
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>
<optgroup>
is used to group several options together
by Valeri Tandilashvili
5 years ago
HTML
tags
HTML5 and CSS3 beginners tutorials
2
Pro tip: use ```triple backticks around text``` to write in code fences