Advertisements
Advertisements
Question
Which of the following tags will clear the contents of the form?
Options
<INPUT TYPE="CLEAR" VALUE="Clear the form"><INPUT TYPE="SUBMIT" VALUE="Clear the form"><INPUT TYPE="RESET" VALUE="Clear the form"><INPUT TYPE="BUTTON" VALUE= "Clear the form">
MCQ
Advertisements
Solution
<INPUT TYPE="RESET" VALUE="Clear the form">
Explanation:
An input with type="reset" resets (clears) the form controls back to their initial/default values when clicked. A reset button “automatically resets form controls to their initial values” (so it clears text boxes, unchecked checkboxes, etc., unless they had nonempty default values).
shaalaa.com
Is there an error in this question or solution?
