An HTMX attribute gives an HTML element client-side behavior without requiring custom JavaScript for simple interactions. Attributes can specify a request, its trigger, a target element, and how the response replaces content. section 6.2.3
Replace a greeting
A button with `hx-get="/click"` requests HTML when clicked. `hx-target="#greeting"` selects the destination div, while `hx-swap="innerHTML"` replaces its contents with the response body. section 6.2.3
Listing 6.13 Including the list of available cars in the index page
<h2>Available cars to rent</h2>
<form hx-get="/available" hx-target="#availability">
<p>Start date:<input id="startDateInput" type="date"
name="startDate" value="{startDate}"/></p>
<p>End date:<input id="endDateInput" type="date"
name="endDate" value="{endDate}"/></p>
<input type="submit" value="Update list"/>
</form>
<div id="availability" hx-get="/available" #1
hx-trigger="load, update-available-cars-list from:body"
hx-include="[id='startDateInput'],[id='endDateInput']">
<!-- To be replaced by the result of calling /available -->
</div>
The availability form requests `/available` and targets `#availability`. That div also requests data on load or a named event, including the selected dates. section 6.2.3

