Page 84 - Code_GPT_Class_8
P. 84
3. What does the 'PASSWORD' attribute used for in an input element?
a. It specifies the input field as mandatory. b. It disables the input field.
c. It validates the input field's content. d. It hides the input field from view.
4. Which input type is used for selecting multiple options from a predefined list in a form?
a. select b. checkbox
c. radio d. text
5. What does 'CHECKED' attribute used for in an input element?
a. It selects the specific radio button by default.
b. It assigns a name to a radio button group.
c. It creates a new checkbox.
d. It hides the radio button.
6. Identify the correct HTML code:
a. <INPUT TYPE= "RADIO" SUBMIT="Gender" VALUE="Male" CHECKED>
b. <INPUT TYPE= "RADIO" NAME="Gender" VALUE="Male" CHECKED>
c. <INPUT CHECK= "RADIO" NAME="Gender" VALUE="Male" CHECKED>
d. <INPUT TYPE= "RADIO" NAME="Gender" SUBMIT="Male" CHECKED>
Fill in the blanks with the correct words.
Hints Password, Reset, select, method, type, option
1. is a single-line text input but it masks the character as soon as a user enters any
character into it.
2. attribute specifies the type of method, the form will use to accept the values entered
into form fields.
3. The purpose of attribute is to specify the kind of field that we aim to create.
4. We can create a button control using RESET value.
5. We can create a combo box using and tags.
Q Answer the following questions:
A
1. Write one similarity and one difference between Radio Button and Check Box.
2. Name five different values that can be assigned to TYPE attribute of INPUT tag.
CodeGPT (Ver. 4.0)-VIII
82

