Page 140 - Viva ICSE Computer Studies 7 : E-book
P. 140
Adding a Radio Button
Radio buttons are used to select one of the several given choices. For example, while selecting
a gender, only one option can be selected at a time, either a ‘Male’ or ‘Female’.
Syntax: <input type=”Radio”>
Adding a Password Field
A password fi eld is similar to a textbox, however the data entered in this fi eld does not get
displayed, instead dots or asterisks are shown on the screen. This way no one can see the typed
information. This element is used to enter passwords and ATM pin.
Syntax: <Input type=”Password”>
Adding a Drop-down List
A drop-down list displays the list of options from which the user can select an option. The
<select> tag is used for this purpose. The <option> tag is attached to the <select> tag to
display a list of options. The Select tag must be closed at the end </select>.
128