Question:

Which of the following attribute of form is used to specify where to send the form data when the form is submitted?

Show Hint

Remember: {action} defines where the form data goes, while {method} defines how the data is sent (GET or POST).
  • method
  • action
  • submit
  • input
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understand form attributes in HTML.

HTML forms use different attributes to control how form data is processed and submitted. These attributes define how and where the form information is sent after the user submits it.

Step 2: Explain the action attribute.

The action attribute specifies the destination URL where the form data will be sent after submission.

Example:

<form action="submit.php">
In this example, the form data will be sent to the file submit.php for processing.

Step 3: Analyze the other options.

method: This attribute specifies how the data will be sent (GET or POST), but not where it will be sent.

submit: This is not a form attribute; it is related to the submit button.

input: This is a form element used to accept user input, not an attribute of the form tag.

Step 4: Conclusion.

Therefore the attribute used to specify the destination where form data is sent is the action attribute.
Was this answer helpful?
0
0