# Method

> Represents values for the HTML method attribute of the <form> element.

[API reference](/docs/api/index.md) › [HTML](/docs/extensions/html/reference/index.md) › [Form](/docs/extensions/html/reference/form/index.md) › [Values](/docs/extensions/html/reference/form/values/index.md) › Method

| enum | `UIAwesome\Html\Form\Values\Method` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Form/Values/Method.php`](https://github.com/ui-awesome/html/blob/main/src/Form/Values/Method.php#L12) |

Represents values for the HTML `method` attribute of the `<form>` element.

See also: <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form#method>.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-DIALOG"></span>`DIALOG` | `'dialog'` | Represents the `dialog` token. When the form is inside a `<dialog>`, closes the dialog and causes a submit event to be fired on submission, without submitting data or clearing the form. |
| <span id="case-GET"></span>`GET` | `'get'` | Represents the `get` token. The form data is appended to the `action` URL with a `?` separator. This is the default value. |
| <span id="case-POST"></span>`POST` | `'post'` | Represents the `post` token. The form data is sent as the request body. |