Attributes · <form action>
Which HTML Form Action attributes matter?
These attributes decide how the <form action> behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does |
|---|---|
action (on <form>) | The URL the form submits to. Absolute (https://…) or relative (/submit). Omit it to submit to the current page URL. |
formaction (on a button) | Overrides the form's action for that one button — handy for multiple submit targets like 'Save' vs 'Save and publish'. |
relative URL | A path like /api/submit is resolved against the current page's origin. |
no action | If action is omitted entirely, the browser submits to the page's own URL (the document the form lives in). |




