--- title: "hx-validate" description: "Validates before submitting the request" --- The `hx-validate` attribute will cause an element to validate itself by way of the [HTML5 Validation API](/docs#validation) before it submits a request. ## Syntax ```html ``` Only `