Frameworks
htmx Cheat Sheet
Print-ready cheat sheet for htmx, organized for fast lookup, study, and desk-side use
Sample
What's in this cheat sheet
- Basics
- Attributes
- Triggers
- Targets
- Swapping
- Headers
- Events
- Extensions
- Indicators
- Common Patterns
Installation
<script src="https://unpkg.com/htmx.org@2"></script>
<!-- Or via npm -->
npm install htmx.org
How It Works
HTML-driven | Issue AJAX from HTML attributes, no JS needed |
Swap content | Server returns HTML fragments, htmx swaps them in |
Progressive | Enhances standard HTML; degrades gracefully |
REST-friendly | Works with any server-side framework |
Download the full cheat sheet for all sections, formatted for print
Download PDFDownloads
Choose the treatment that matches how you read
-
Recommended
Standard
B&W, ink-efficient. The default for laser printers and photocopies
Best for Printouts and desk-side reference
-
Color
Warm color accents for on-screen reading or color printers
Best for Screen reading or color printers
-
Reference Card
Maximum density, 4-column layout. Everything on one page
Best for Fast scanning and minimum paper use