• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Description

The <select>...</select> element presents either a combo box, also known as a drop-down menu, or a multiple selections box. The distinction occurs when the multiple="multiple" attribute is part of the starting tag.

Listing 25.9 demonstrates select boxes. Note the interesting effect of the option group tag in the right box in Netscape 6 and Internet Explorer 6. The word “lightcols” is bolded and italicized, but you cannot select it. This is how Netscape 6 and Internet Explorer 6 identify their groupings to the user. The options in the group itself are indented. It's also immediately obvious, by the end of the indenting, where the group ends. Figure 25.2 accompanies Listing 25.10, the rendering of two types of select boxes.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint