HTMX
HTMX is a JavaScript library that enables HTML attributes to initiate HTTP interactions, handle events, and update portions of a page.
Quarkus in Action
HTMX is a client-side web library that enables HTML-driven interaction with servers and dynamic page updates without requiring custom JavaScript for many use cases.
- How it is used
- Enables asynchronous, partial-page updates in a server-rendered reservation management UI.
- How deep it goes
- Works through HTML attributes, Qute fragments, and REST endpoints; stops short of HTMX internals.
- Examples
- Shows a GET-driven greeting, date-filtered available cars, a reservations table, and a reservation form.
- What you can do after
- Build it from scratch with HTMX attributes, Qute HTML fragments, and Quarkus REST endpoints for targeted page updates.
Django in Action
HTMX is a JavaScript library that enables HTML elements to initiate HTTP interactions and update portions of a page.
- How it is used
- Adds partial-page interactivity to Django applications without extensive JavaScript.
- How deep it goes
- Explains request attributes and walks through lazy loading and inline editing views, templates, forms, and routes.
- Examples
- Demonstrates lazy-loaded promoters and inline editing of rooms associated with a venue.
- What you can do after
- Apply it via HTMX attributes to fetch Django partials and update targeted page regions.
Web Component Development with Modern Libraries and Tooling
A JavaScript library that enables HTML attributes to issue requests and update page content without writing conventional client-side application code.
- How it is used
- Uses HTML attributes to connect a button with a server endpoint and update a page region from the returned HTML.
- How deep it goes
- Demonstrates GET requests and target selection through two attributes, without surveying broader HTMX APIs or client-side internals.
- Examples
- Uses a hello-world button that requests a named greeting and populates a greetings div with server-rendered custom elements.
- What you can do after
- Apply it via HTMX by adding hx-get and hx-target attributes to request and replace page content.
Read how Web Component Development with Modern Libraries and Tooling explains HTMX →
What to know first
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- HTTP GETHTTP GET is a safe, idempotent method that requests a representation of a resource without intending to change its state.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Related concepts
- autocompleteused by · Autocomplete is an interactive feature that suggests or completes likely continuations of partial input as a user types.
- HTMLuses · HTML is the standard markup language for structuring content and elements in documents on the web.
- JavaScriptuses · JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- lazy initializationused by · Lazy initialization is a technique that defers creating, loading, retrieving, or computing a value or resource until it is needed.
- librarykind of · A software library is a reusable collection of code or components that provides functionality for other programs to incorporate or call.
Questions about HTMX
What is HTMX?
HTMX is a JavaScript library that enables HTML attributes to initiate HTTP interactions, handle events, and update portions of a page.
Which Manning books explain HTMX?
Quarkus in Action, Django in Action and Web Component Development with Modern Libraries and Tooling.
What should I know before learning HTMX?
Manning books that teach HTMX usually introduce HTML, HTTP GET and JavaScript first.
What is HTMX a kind of?
HTMX is a kind of client-side toolkit. A client-side toolkit is a collection of browser-executed functionality for building and enhancing web applications.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


