Skip to content

HTMX

HTMX is a lightweight library that allows you to access modern browser features directly from HTML attributes. It enables AJAX requests, CSS transitions, WebSockets, and Server-Sent Events without writing JavaScript, making it a powerful tool for hypermedia-driven applications.

In This Section

  • Getting Started — hx-get, hx-post, hx-target, and basic AJAX
  • Requests & Triggers — hx-trigger, hx-vals, hx-headers, and request modifiers
  • Swapping & Transitions — hx-swap, swap styles, and CSS transitions
  • Advanced Patterns — WebSockets, SSE, history, and progressive enhancement