Can you have multiple lines in an element?

This may not be what you want, but you can get two lines per option, by using the “optgroup” tag e.g:

<select>
  <optgroup label="Click below for 'yes'">
    <option value="yes">Yes</option>
  </optgroup>
  <optgroup label="Click below for 'No'">
    <option value="no">No</option>
  </optgroup>
</select>

Leave a Comment