name attribute defines the name of the form. Because a page can have more than one form.
action defines the action of form. (to which this form have to send its values).
method defines the type of method used to send the values of the form.
method have twotypes of values. i.e. method=”post”, method=”get”.
When the user clicks on the “Submit”button, the content of the form is sent to another file. The form’saction attribute defines the name of the file to send the content to. The file defined in the action attribute usually does something with the received input.