HTML and CSS Reference
In-Depth Information
For example, with HTML you might use <optgroup> to present a form
menu of states organized by region ( Figure 9-7 ):
Figure 9-7. The <optgroup> tag helps organize form
<select> menus
<select name=state>
<optgroup label=Northeast>
<option>Maine
<option>New Hampshire
...
</optgroup>
<optgroup label=South>
<option>Florida
<option>Georgia
</optgroup>
...
</select>
Like that shown for Opera in Figure 9-7 , the other popular GUI browsers
similarly indent the <optgroup> items within a scrolling menu, though the
others italicize and make the group headers bold.
Search WWH ::




Custom Search