# HTMX Tabs Demo ## Example Overview This example demonstrates how to use Bootstrap 5 tabs with **[HTMX](https://htmx.org/)** to load tab content (including `django_tomselect` fields) dynamically without full page reloads. Each tab fires its own HTMX request when selected, and the initially active tab loads on page load. Use this when you want to defer rendering a form until its tab is actually opened. --- ## Key Code Segments ### Main Template with Tabs Structure The main template sets up the Bootstrap 5 tabs and configures HTMX requests for each tab. :::{admonition} HTMX Tabs Template :class: dropdown ```html