English

Which of the following tags will clear the contents of the form?

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?
Chapter 5: HTML- III: Audio, Video and Forms - Assisted Practice [Page 228]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 5 HTML- III: Audio, Video and Forms
Assisted Practice | Q 9. | Page 228
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×