Orvado Technologies is your one-stop shop for custom web site solutions, quality work at affordable rates
 
orvado side

<OPTGROUP>

The OPTGROUP tag is used inside a select element to create groupings for long lists of options. By breaking up the list, it makes it easier for users who visit your site to discern choices.

You are not permitted to create nested option groups with this tag. You must include an ending tag with this element.

Attributes

Attribute Description
ID Identifies this tag to reference in script (program code)
CLASS Define the class used to render this element (defined by a style sheet)
DISABLED Indicates that the group of options is currently disabled so the user cannot select any of the choices. They are still visible, the user is not allowed to select any choices.
LABEL Required attribute containing the label which should appear as a heading for the group of options

Example

<FORM action="http://www.testmesite.com/test.php" method="post">
 <P>
 <SELECT name="ComOS">
     <OPTION selected label="none" value="none">None</OPTION>
     <OPTGROUP label="PortMaster 3">
       <OPTION label="3.7.1" value="pm3_3.7.1">PortMaster 3 with ComOS 3.7.1</OPTION>
       <OPTION label="3.7" value="pm3_3.7">PortMaster 3 with ComOS 3.7</OPTION>
       <OPTION label="3.5" value="pm3_3.5">PortMaster 3 with ComOS 3.5</OPTION>
     </OPTGROUP>
     <OPTGROUP label="PortMaster 2">
       <OPTION label="3.7" value="pm2_3.7">PortMaster 2 with ComOS 3.7</OPTION>
       <OPTION label="3.5" value="pm2_3.5">PortMaster 2 with ComOS 3.5</OPTION>
     </OPTGROUP>
     <OPTGROUP label="IRX">
       <OPTION label="3.7R" value="IRX_3.7R">IRX with ComOS 3.7R</OPTION>
       <OPTION label="3.5R" value="IRX_3.5R">IRX with ComOS 3.5R</OPTION>
     </OPTGROUP>
 </SELECT>
</FORM>

Renders As:

Compatibility

HTML 4.01
Return to HTML Tag Reference Overview

Featured Clients

Sarasota Wedding Photographer

CMS Photography needed a website that would help them in search engine rankings. We took the site and redesigned the code to be XHTML Strict validated code that would give them the best foot forward.
Site Map   Terms of Service   Privacy Policy