Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

HTML Revision Assignment-IV .

The document contains a quiz about HTML forms with 15 multiple choice questions. It tests knowledge of form attributes like action, input types like text, radio, submit and password. Questions cover form elements, how to label fields and submit forms, and when to use get vs post methods.

Uploaded by

SlyCat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

HTML Revision Assignment-IV .

The document contains a quiz about HTML forms with 15 multiple choice questions. It tests knowledge of form attributes like action, input types like text, radio, submit and password. Questions cover form elements, how to label fields and submit forms, and when to use get vs post methods.

Uploaded by

SlyCat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DELHI PUBLIC SCHOOL – ROHINI

ASSIGNMENT – IV
HTML – (Forms)
Name : _____________ Date : ____________
Choose the correct option:
1. The action attribute of a form
a. Tells how the information should be sent to the server
b. Specifies a URI/URL of the page that will process the form
c. lets the user select from a set of options
d. Is a button command that processes the form

2. When retrieving information, the ______ method will work.


a. search b. put
c. get d. post

3. The select field in a form


a. Provides users with a set of options to choose from.
b. Auto-completes as the user types data.
c. Cannot have a default option setting.
d. Provides users with a set of options to choose from.

4. In a form, <input type="text" ...>


a. cannot be set to "required" b. will accept multiple lines of characters.
c. will accept only a single line of characters. d. None of these

5. To help users know what to put in field, use


a. <input name="firstname">
<input type="text" id="firstname>
b. <label for="firstname">
c. <input type="text" id="firstname" name="label">
d. <input label="First Name" type="text">

6. In a form, a drop-down list of options


a. begins with a select tag followed by a list of option tags.
b. begins with a select tag followed by a list of option tags.
c. begins with a select tag followed by a list of datalist tags.
d. begins with a datalist tag followed by a let of option tags.
7. To submit a form for processing, use
a. <input type="button" method="submit">
b. <button type="submit"></button>
c. <input type="submit">Submit</input>
d. <input type="submit" value="Submit">

8. Which one of the following is a form element?


a. Radio button
b. Input
c. Textbox
d. None of these

9.Consider the following form control in a HTML form:


Male Female
Now choose the correct line of code for the above :
a.
<input type = “radio” name= “Gender” value= “male”>Male<br>
<input type = “radio” name= “Gender” value= “female”>Female<br>
b.
<input type = “radiobutton” name= “Gender” value= “male”>Male<br>
<input type = “radiobutton” name= “Gender” value= “female”>Female<br>
c.
<input type = “radio”, name= “Gender”>< value= “male”>Male
<input type = “radio”, name= “Gender”>< value= “female”>Female d.
d.
<input type = “radio” name= “Gender” value= “male”><br>
<input type = “radio” name= “Gender” value= “female”><br>

10. Tag to create password field in HTML document:


<password>
<input>
<pwd>
<pword>

11. Which of the following tag is used to define options in a drop-down


selection list?
<select>
<list>
<dropdown>
<option>
12. Cols attribute in forms text area specifies the ___
a. visible width of a text area b. size of a text area
c. size of a text field d. visible number of lines in a text area

13. What is the default type of ‘type’ attribute of <input> element?


a. Password b. Numerals c. text d. Special
characters

14. When form data contains sensitive or personal information than which
method is more preferable?
a. Get method. b. Put method c. Host method d. Post
method

15. Which of the following is not the form type for adding text?
a. Text input b. Submit button. c. Text area d. Password input

You might also like