HTML action attribute

action attribute directs the form submission to the respective address. We write the address(URL) in the value of this attribute.


<form action="files/action.php" method="post">
 First Name: <input type="text" name="fname"><br>
 Last Name: <input type="text" name="lname"><br>
 Tel: <input type="tel" name="Mnumber"><br>
 Email: <input type="email" name="email" required><br>
 <input type="submit" name="send" value="send">
Try </>

action attribute values

The value of action attribute is the URL where a form is processed after submission.

Related Tags

The tags that support this attribute are as follows.

<form> tag

HTML <form> tag defines a form that collects information from the user.

See the example given above.

Was this article helpful?




Get the newsletter