HTML Form MCQ
HTML Form MCQ : This section focuses on the "Form" in Html. These Multiple Choice Questions (mcq) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. Choose the correct option.
A. HTML form elements are used for taking user input.
B. HTML form elements are defined inside <for> tag.
C. HTML form elements can be of different types.
D. All of these.
View Answer
Ans : D
Explanation: All the above three statements hold true for forms in HTML.
2. Which one of the following is a form element?
A. text box.
B. radio button.
C. submit button.
D. All of these.
View Answer
Ans : D
Explanation: All of these are the types of form element.
3. Which one of the following is incorrect?
A. <label> tag in HTML is used for creating a tag for form elements.
B. <label> can be used to increase the clickable area of buttons
C. id attribute is used with <label> to increase the clickable area of form elements
D. None of the above
View Answer
Ans : C
Explanation: attribute for is used with <label> for increasing the clickable area of form elements.
4. Choose the incorrect option.
A. radio button allows to choose only one option from the given options.
B. default option can be chosen using attribute "selected" in radio button
C. default option can be chosen using attribute "checked" in radio button
D. checkbox allows to choose one or more than one options from the given options.
View Answer
Ans : B
Explanation: "selected" is used to set an option as default in the radio button.
5. Choose the incorrect option.
A. action attribute is used inside starting tag of form.
B. With the use of action, we can redirect to a page once submit button is clicked.
C. <form action:"home.php"> redirects to the page home.php
D. None of the above
View Answer
Ans : C
Explanation: Correct way of using action attribute is <form action="home.php">
6. Choose the correct option.
A. Use of method attribute determines by which method the datas in the form will be submitted.
B. Method can be POST or GET.
C. Default method in HTML is GET.
D. All of the above
View Answer
Ans : D
Explanation: All three options are true with reference to the GET method in HTML.
7. Which one of the following does not hold true regarding GET method in HTML?
A. Use of GET method in HTML is more secured.
B. Use of GET method enables us to bookmark the page.
C. GET has size limitation.
D. None of the above
View Answer
Ans : A
Explanation: The use of the GET method is not secured as data sent will be visible in the URL.
8. Which one of the following does not hold true regarding POST method in HTML?
A. Use of POST method in HTML is more secured.
B. Use of POST method enables us to bookmark the page.
C. POST has no size limitation.
D. None of these.
View Answer
Ans : B
Explanation: The use of POST method for form submission does not allow to bookmark the page.
9. Which of the following tag is used for drop down list?
A. <select>
B. <text>
C. <textarea>
D. <dropdown>
View Answer
Ans : A
Explanation: <select> is used for dropdown list.
10. How more than one option can be selected in drop down?
A. Use of multiple attribute inside <option> tag.
B. Use of multiple attribute inside <select> tag.
C. use of multiple attribute inside <text> tag.
D. It is not possible to select more than one option in drop down.
View Answer
Ans : B
Explanation: By the use of multiple attributes inside opening tag of <select>, more than one option can be selected in dropdown.
Also check :
Discussion