Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 88 - 2620_Birla Open Mind C-8
P. 88

    Let us create a web page to display the check box.

                  <!DOCTYPE html>

                  <HTML>
                  <BODY>

                  <FORM>
                  Hobbies: <BR>

                  <INPUT TYPE="CHECKBOX" NAME="Hobbies" VALUE="Reading">Reading <BR>
                  <INPUT TYPE="CHECKBOX" NAME="Hobbies" VALUE="Travelling"> Travelling <BR>

                  <INPUT TYPE="CHECKBOX" NAME="Hobbies" VALUE="playing games"> playing games <BR>

                  <INPUT TYPE="CHECKBOX" NAME="Hobbies" VALUE="singing & dancing"> singing & dancing
                  <BR>
                  </FORM>
                  </BODY>

                  </HTML>
                  Adding Password Field

                  This is also a single-line text input but it masks or encrypts character as soon as a user enters into it.
                  The password is not visible to the user in password field control.

                  To add the password field in the form, follow the syntax as given below:

                  <INPUT TYPE=“PASSWORD” NAME=“Name of Password Field” SIZE=“Size of the password
                  Field”>
                  For example:

                  <INPUT TYPE=“PASSWORD” NAME=“Pass” SIZE=“10”>

                  TYPE=“PASSWORD” indicates that the form element is password.
                  Name="Pass" indicates that the name of the password field is "Pass".

                  SIZE=“10” denotes the maximum size of the password field i.e. ‘10’.

                  Let us create a web page to display the password field.

                  <!DOCTYPE html>

                  <HTML>
                  <BODY>

                  <FORM>

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

                  </HTML>

                      86  Premium Edition-VIII

| 83 84 85 86 87 88 89 90 91 92 93 |