HTML action attribute

HTML 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">
</form>
</>
First Name:
Last Name:
Tel:
Email:

Attribute values

All possible values of action attribute

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

Related Tags

The tags that support action attribute

<form> tag

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

<p>Upload Video: <input type="file" accept="video/*"><p>
Try</>


Was this article helpful?