htmx 4.0 is under construction — migration guide

HTML can do that!?

build modern UIs with the simplicity of hypertext

Start Here

~11k min.br'd 0 dependencies 15 extensions

motivation

  • Why should only <a> & <form> make HTTP requests?
  • Why should only click & submit trigger them?
  • Why should only GET & POST be available?
  • Why should every update replace the entire screen?

htmx removes these constraints and completes HTML as a hypertext.

quick example

<button hx-post="/clicked" hx-swap="outerHTML"> Click Me </button>

When clicked, hx-post sends a POST to /clicked and hx-swap replaces the button with the response. No JavaScript.

book

Hypermedia Systems covers how to build HDAs using htmx & more.

Hypermedia Systems (hardcover)Hypermedia Systems (softcover)
Read it free online →

sponsors

Thank you to all our generous sponsors!

silver Sponsors

htmx is the successor to intercooler.js

ʕ •ᴥ•ʔ made in montana