Page 145 - TP_iPlus_V2.1_Class7
P. 145

<SELECT>

                 <OPTION> Option 1

                 <OPTION> Option 2

                 <OPTION> Option N

                 </SELECT>
                 For example:

                 <SELECT NAME="City">
                 <OPTION>Aligarh

                 <OPTION>Ghaziabad
                 <OPTION>Meerut

                 </SELECT>
                 The above code will create a dropdown list in which three options are available.
                 Let us create a web page to display the combo box.

                 <!DOCTYPE html>

                 <HTML>
                 <BODY>


                 <FORM>
                 Select Stream:

                 <SELECT NAME="List Name">

                 <OPTION>Science

                 <OPTION>Commerce

                 <OPTION>Arts

                 </SELECT>

                 </FORM>

                 </BODY>

                 </HTML>
                 Let us create a web page containing login form, which accepts the user name and password from
                 the user. Code to create the Form.html is as follows:
                 <!DOCTYPE html>

                 <HTML>

                 <HEAD> <TITLE> Login Form </TITLE> </HEAD>

                 <BODY STYLE="BACKGROUND-COLOR:lightyellow">



                                                                                                                 143
                                                                                                More on HTML
   140   141   142   143   144   145   146   147   148   149   150