Page 149 - CA_165_V2.0_Flipbook
P. 149

Password Input Field









                 Adding a Combo box

                 A combo box provides option to list down various options in the form of drop-down list, from where a
                 user can select desired option. For example:

                   <SELECT NAME="List Name">
                   <OPTION>Option1
                   <OPTION>Option2
                   </SELECT>
                 The following HTML code uses the <SELECT> tag with the <OPTION> tags to create a combo box (drop-
                 down list) for selecting a stream:

                 <HTML>

                 <HEAD>
                 <TITLE>
                 ADDING A COMBO BOX

                 </TITLE>
                 </HEAD>

                 <BODY>
                 <FORM>

                 Select Stream :
                 <SELECT NAME="List Name">

                 <OPTION>Science
                 <OPTION>Commerce
                 <OPTION>Arts

                 </SELECT>
                 </FORM>

                 </BODY>
                 </HTML>
                 The output of the preceding HTML code is as follows:








                                                                                            More About HTML      147
   144   145   146   147   148   149   150   151   152   153   154