Page 148 - CA_165_V2.0_Flipbook
P. 148

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







                         Checkboxes for
                        Hobbies Selection







                  Adding a Password Field
                  This is also a single-line text input but it masks the character as soon as a user enters into it. The password
                  is not visible to the user in password field control. For example:

                  <INPUT TYPE="PASSWORD" NAME="Salary" SIZE="10">
                  TYPE="PASSWORD" indicates that the form element is password.
                  SIZE="10" denotes the maximum size of the password field i.e., ‘10’.

                  The following HTML code uses the <INPUT> tag with the TYPE=PASSWORD attribute to create a password
                  field where the input is masked:

                  <HTML>
                  <HEAD>

                  <TITLE>
                  Adding a Password Field

                  </TITLE>
                  </HEAD>

                  <BODY>
                  <FORM>

                  Password : <INPUT TYPE="PASSWORD" NAME="SALARY" SIZE="10">
                  </FORM>
                  </BODY>

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

















                   146   Touchpad Computer Applications-X
   143   144   145   146   147   148   149   150   151   152   153