Attributes · <form>
Which HTML Form attributes matter?
These attributes decide how the <form> behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does |
|---|---|
action | The URL the form data is sent to. Omitting it submits to the current page. |
method | get (default, appends data to the URL) or post (sends data in the request body — use this for real forms). |
enctype | How data is encoded. Use multipart/form-data when the form includes file uploads. |
target | Where to show the response. _blank opens it in a new tab; _self is the default. |
novalidate | Disables the browser's built-in validation. Usually leave it off so HTML validation runs. |
autocomplete | on (default) lets the browser pre-fill fields like name, email, and address. |




