--- title: "hx-method" description: "Specifies the HTTP method for the request" --- The `hx-method` attribute specifies the HTTP method (verb) to use for the request. ## Syntax ```html ``` ## Notes * Valid values: `get`, `post`, `put`, `patch`, `delete` * If no method is specified, defaults to `get` * `hx-method` is typically used with [`hx-action`](/reference/attributes/hx-action) * The shorthand attributes like [`hx-get`](/reference/attributes/hx-get), [`hx-post`](/reference/attributes/hx-post), etc. can be used instead ## Examples ```html ```