Easy Tutorial
❮ Att Tr Bgcolor Ref Country Codes ❯

HTML <form> action Attribute

HTML <form> Tag

Example

When the form is submitted, the form data is sent to a file named "demo_form.html" for processing:


Browser Support

All major browsers support the action attribute.


Definition and Usage

The action attribute specifies where to send the form data when the form is submitted.


Differences Between HTML 4.01 and HTML5

In HTML5, the action attribute is no longer required.


Syntax

Attribute Values

Value Description
URL Specifies where to send the form data upon form submission. Possible values: Absolute URL - Points to another website (e.g., action="http://www.example.com/example.htm")<br>Relative URL - Points to a file within the website (e.g., action="example.htm")

❮ Att Tr Bgcolor Ref Country Codes ❯