Re: SELECT structures with lots of OPTIONs

On Mon, 13 Oct 1997, Al Gilman wrote:

> <form>
>   <p>Nested selections
>   <select name=pizza>
>     <lh>size</lh>
>       <option>medium
>       <option>large
>     <lh>toppings</lh>
>       <option>onions
>       <option>meat balls
>   </select>
> 
> </form>

If we want to allow for the possibility of arbitrarily nested
menus, then OPTGROUP with a required end tag is needed.

> This may have the advantage of getting the group label displayed
> in legacy browsers as opposed to the NAME attribute which hides
> except in new releases. 

You LH example when rendered by Netscape 3.0 also hides the
list headings. I suspect this will be also true for most
other widely deployed legacy browsers.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)

Received on Tuesday, 14 October 1997 09:54:20 UTC