HTML and CSS Reference
In-Depth Information
<optgroup>
Groups related
<option>
elements within a
<select>
menu
Function
class
,
dir
,
disabled
,
id
,
label
,
lang
,
onClick
,
onDblClick
,
onKeyDown
,
onKeyPress
,
onKeyUp
,
onMouseDown
,
onMouseMove
,
onMouseOut
,
onMouseOver
,
onMouseUp
,
style
,
title
Attributes
</optgroup>
; may be omitted in HTML
End tag
Contains
optgroup_content
Used in
select_content
9.8.3.1. The label attribute
Use the
label
attribute to define an
<optgroup>
submenu title to the user.
You should keep the label short and to the point to ensure that the menu
can be displayed easily on a large variety of displays.