--- title: "hx-action" description: "Specifies the URL to receive the request" --- The `hx-action` attribute specifies the URL that will receive the request. ## Syntax ```html ``` ## Notes * `hx-action` is typically used with [`hx-method`](/reference/attributes/hx-method) to specify both the URL and HTTP method * The shorthand attributes like [`hx-get`](/reference/attributes/hx-get), [`hx-post`](/reference/attributes/hx-post), etc. combine both URL and method * Use `hx-action` + `hx-method` when you need dynamic method selection ## Examples ```html ```