How-ToWeb Developmenthtmx Has Free Interactive HTML Without JavaScript — Here's Why It's Going Viralvia Dev.to JavaScriptAlex Spinov3h agoWhat if you could build interactive web apps without writing JavaScript? htmx makes HTML do what JavaScript frameworks do — with zero build step. What is htmx? htmx gives you access to AJAX, CSS Transitions, WebSockets, and Server-Sent Events directly in HTML, using attributes. No JavaScript required. Quick Start <script src= "https://unpkg.com/htmx.org@2.0.0" ></script> That is it. No npm, no bundler, no build step. Click to Load <button hx-get= "/api/users" hx-target= "#user-list" hx-swap= "innerHTML" > Load Users </button> <div id= "user-list" ></div> When clicked, htmx makes a GET to /api/users and puts the HTML response into #user-list . Search as You Type <input type= "search" name= "q" hx-get= "/search" hx-trigger= "input changed delay:300ms" hx-target= "#results" > <div id= "results" ></div> Infinite Scroll <tr hx-get= "/contacts?page=2" hx-trigger= "revealed" hx-swap= "afterend" > <td> Loading more... </td> </tr> Form Submit <form hx-post= "/contacts" hx-target= "#contact-listContinue reading on Dev.to JavaScriptOpens in a new tabRead Full Article2 viewsShare