htmx 4.0 is under construction — migration guide

Documentation

From installation to advanced usage.

</> CEO </> XSS grug </> HTMX REST </> JSON

Get Started

Install htmx in your project, or migrate from version 2.x

hx-get hx-post hx-swap hx-target

Core Concepts

Master the fundamentals of building with htmx

Features

Add transitions, history, and HTML5 validation

Extensions

Extend htmx with SSE, WebSockets, head support, and more

Security

Guard against vulnerabilities and configure caching

Troubleshoot

Debugging tools, logging, and configuration