asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > OPTGROUP Element

OPTGROUP Element | OPTGROUP Object


HTML 4, 4.01, 5

Indicates a group of related options in a selection list.

HTML Syntax

An <optgroup> element’s end tag can be omitted if the <optgroup> element is immediately followed by another <optgroup> element, if it is immediately followed by an <hr> element, or if there is no more content in the parent element.

Attributes

The <optgroup> element supports the following attributes, in addition to global attributes common to all HTML elements.

AttributeValueDescription
disableddisabledSpecifies that an option-group should be disabled
labeltextSpecifies a label for an option-group

Example

<optgroup>MSN</optgroup>
See Also



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note