Att Form Method
# HTML <form> `method` Attribute
The `method` attribute of the `
```
*If a user types "HTML tutorial" and submits, the browser will redirect to: `search_results.html?query=HTML+tutorial`*
### Example 2: Submitting a Form Using the POST Method
This is the standard approach for user registration, logins, and submitting sensitive data.
```html
```
*When submitted, the credentials are sent securely in the HTTP request body, keeping the URL clean and secure.*
---
## HTML 4.01 vs. HTML5
There are no differences in the core behavior of the `method` attribute between HTML 4.01 and HTML5. However, HTML5 introduces the `formmethod` attribute, which allows you to override the form's `method` attribute on a per-button basis (e.g., ``).
YouTip