Page 76 - Chinmaya_C7_flipbook
P. 76

Syntax of  single-line text input control:

                  <INPUT TYPE = "TEXT" NAME = "The word that describes the textbox" SIZE = "The width you
                  want to use for the text box" MAXLENGTH = "Maximum number of characters">
                  Write HTML codes for creating a single-line text input control:

                  <!DOCTYPE html>

                  <HTML>
                  <HEAD>
                  <TITLE> Single Line Text Input Control </TITLE>

                  </HEAD>
                  <BODY>

                  <FORM NAME = "Registration From" METHOD = "POST" ACTION =
                  "mailto:niidhiarora@gmail.com">
                  <Hl ALIGN = "CENTER"> Registration </Hl>
                  <B>ApplicantName:</B>

                  <INPUT TYPE = "TEXT" NAME = "APPLI_NAME" SIZE = "30" MAXLENGTH = "20">
                  <BR> <BR>
                  <B>Address: </B>

                  <INPUT TYPE = "TEXT" NAME = "ADDRESS" SIZE = "30" MAXLENGTH = "40">
                  </FORM>
                  </BODY>

                  </HTML>











                  Password input control

                  This control is same as the text input control, but it masks the characters as soon as the user enters
                  them. The characters entered/typed appear as * instead of normal text.
                  Syntax of password input control:

                  <INPUT TYPE = "Password" NAME = "The word that describes the textbox" SIZE = "The width
                  you want to use for the text box" MAXLENGTH = "Maximum number of characters">


                  Multi-line text input control
                  This control allows us to enter multiple lines. The <TEXTAREA> tag contains the ROWS and COLS

                  attributes, where ROWS attribute indicates the number of rows the text area should accommodate
                  and COLS attribute indicates the width area.



                   74   Premium Edition-VII
   71   72   73   74   75   76   77   78   79   80   81