Page 75 - Modular_V1.1_Flipbook
P. 75
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.
Syntax:
<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’.
<HTML>
<BODY>
<FORM>
Password : <INPUT TYPE="PASSWORD" NAME="Salary" SIZE="10">
</FORM>
</BODY>
</HTML>
Adding password box
Combo Box
Sometime, we need to display multiple options in the form of a drop-down menu or list from
which we can select only one option at a time. This type of control is known as combo box. The
<SELECT> tag with the <OPTION> tag allows us to create a drop-down list. The <OPTION> tag
specify an option in the drop-down list. The syntax of the <SELECT> tag is as follows:
<SELECT>
<OPTION> Option 1
<OPTION> Option 2
<OPTION> Option N
</SELECT>
Forms in HTML 73

