Page 76 - Trackpad_V1_Book 7_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> <CENTER> Registration </CENTER></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 the 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 alphabets.

                  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   Trackpad (Version 1.0)-VII
   71   72   73   74   75   76   77   78   79   80   81