Home → References → HTML Tags →
HTML Dog is hosted by Titan Internet
Required Attributes
labelis used to assign a label to the option group.
Optional Attributes
disabledcan be used to disable an element. It must be used in the formatdisabled="disabled".- Common attributes
Example
<select name="catsndogs">
<optgroup label="Cats">
<option>Tiger</option>
<option>Leopard</option>
<option>Lynx</option>
</optgroup>
<optgroup label="Dogs">
<option>Grey Wolf</option>
<option>Red Fox</option>
<option>Fennec</option>
</optgroup>
</select>

