Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<link rel=help href="https://html.spec.whatwg.org/multipage/form-elements.html#concept-optgroup-label">
<link rel=match href="select-optgroup-legend-label-ref.html">
<meta name=assert content="An optgroup's label comes from its first child legend element when present">
<select size="4">
<optgroup label="Animals">
<legend>Foobar</legend>
<option>Lion</option>
</optgroup>
</select>