optgroup
HTML optgroup Element
The HTML <optgroup> options group element is used to group <option> elements together. It is usually applied to options of a <select> element to section out options.
click here to code.
HTML CODE EXAMPLE
Choose a city:
<select name="city">
<optgroup label="East Coast Cities">
<option value="New York">New York</option>
<option value="Atlanta">Atlanta</option>
<option value="Miami">Miami</option>
</optgroup>
<optgroup label="West Coast Cities">
<option value="Las Vegas">Las Vegas</option>
<option value="Los Angeles">Los Angeles</option>
<option value="San Francisco">San Francisco</option>
</optgroup>
</select>
<select name="city">
<optgroup label="East Coast Cities">
<option value="New York">New York</option>
<option value="Atlanta">Atlanta</option>
<option value="Miami">Miami</option>
</optgroup>
<optgroup label="West Coast Cities">
<option value="Las Vegas">Las Vegas</option>
<option value="Los Angeles">Los Angeles</option>
<option value="San Francisco">San Francisco</option>
</optgroup>
</select>
Select a city:
0 Response to "optgroup"
Post a Comment