Page 76 - Plus V4 with Adobe class 8
P. 76
• PASSWORD: This value is used to create a password field. A password field is just like a text box
field. The only difference is that the text entered in the password field will not be readable because
it appears in the form of star symbols.
NAME: This attribute is used to specify the identity of the field on the web page.
VALUE: This attribute is used to specify the default value of the field.
Adding Text Box
A text box allows a user to enter data such as any character and number.
To add the text box in the form, follow the syntax as given below:
<INPUT TYPE="TEXT" NAME="Name of the textbox" SIZE="size of the textbox"
VALUE="default value of textbox">
For example:
<INPUT TYPE="TEXT" NAME="EName1" SIZE="30" VALUE="Enter User name">
TYPE=“Text” indicates that the form element is text box.
NAME=“EName1” is the name of the text box.
VALUE=“Enter User name” is the default value of text box.
Let us create a web page to display the text box.
<!DOCTYPE html>
<HTML>
<BODY>
<FORM>
USER NAME :
<INPUT TYPE="TEXT" NAME="EName1" SIZE="30" VALUE="Enter User name">
</FORM>
</BODY>
</HTML>
Adding Radio Button
Radio buttons are used when the user has to make a selection among multiple choices or options. It is
generally used for selection of gender, quiz questions, etc. For example, for accepting the gender the
programmer needs to specify two radio buttons “Male” and “Female”, which belong to the same group
called “Gender” so that while inputting data a user will be able to select either “Male” and “Female” but
not both.
74 Plus (Ver. 4.0)-VIII

