Free course
HTMX Course
Learn HTMX by extending HTML with requests, targets, swaps, triggers, forms, indicators, errors, history, and progressive enhancement.
~~~
Your progress
of lessons completed.
Course completed.
What you'll learn
Build a progressively enhanced server-rendered interface that updates useful HTML fragments without a client-side application framework.
Course contents
Hypermedia foundations
Start from HTML, HTTP, server routes, and progressive enhancement.
Requests and responses
Issue HTTP requests and return the HTML each interaction needs.
Targets and swaps
Choose which DOM region changes and how new HTML replaces it.
Triggers, forms, and feedback
Control timing, submit values, and explain in-flight work.
History, errors, and enhancement
Preserve navigation, recover from failures, and keep HTML usable.
- ✓ Boost links and forms
- ✓ Push a URL into history
- ✓ Keep sensitive content out of history snapshots
- ✓ Handle HTTP errors
- ✓ Handle connection errors
- ✓ Use request lifecycle events sparingly
- ✓ Manage focus after a swap
- ✓ Test without JavaScript
- ✓ Build a progressively enhanced task interface
- ✓ Check your understanding: history, errors, and enhancement