Page 76 - Trackpad_V5_Book 7
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 indicates the number of rows the text area should accommodate and
            COLS indicates the width area.



             74   Pro (Ver. 5.0)-VII
   71   72   73   74   75   76   77   78   79   80   81