Page 243 - DCAP109_GRAPHIC_TOOLS
P. 243
Graphic Tools
Notes
Following is the list of attributes for <input> tag.
z type: Indicates the type of input control you want to create. This element is also used to
create other form controls such as radio buttons and checkboxes.
z name: Used to give the name part of the name/value pair that is sent to the server,
representing each form control and the value the user entered.
z value: Provides an initial value for the text input control that the user will see when the
form loads.
z size: Allows you to specify the width of the text-input control in terms of characters.
z maxlength: Allows you to specify the maximum number of characters a user can enter into
the text box.
Password Input Controls
This is also a form of single-line text input controls are created using an <input> element whose
type attribute has a value of password.
Example:
<form action=”/cgi-bin/hello_get.cgi” method=”get”>
Login :
<input type=”text” name=”login” />
<br>
Password:
<input type=”text” name=”password” />
<input type=”submit” value=”submit” />
</form>
236 LOVELY PROFESSIONAL UNIVERSITY