Skip to content

Car Dealership Homepage Template

Bootstrap 6 car dealership homepage with inventory search, filterable vehicle cards, a loan payment calculator, pre-approval dialog, reviews and test drive booking.

Also known as: auto dealer landing page, used car lot website, vehicle inventory homepage, car sales website design

Car Dealership Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A complete Bootstrap 6 car dealership homepage for a fictional dealer, Halden Motors, with inventory search, filterable vehicle cards, a payment calculator, a pre-approval dialog, reviews and test drive booking.

How it works

Everything sits inside .hm-page (data-bs-theme="light"), which maps the Bootstrap 6 primary role (--bs-primary-bg, --bs-control-checked-bg and friends) to the brand orange.

  • Navbar: a dark navbar lg:navbar-expand with a <dialog class="drawer drawer-end"> for mobile. "Inventory" opens a .menu whose items (data-hm-jump) pre-filter the car grid. The script syncs aria-expanded and closes the drawer after a link.
  • Hero and search: a showroom photo, headline and offer badge. The overlapping .hm-search panel has btn-check condition pills, a searchable Combobox for the make, a body type select and a Range for max price; submitting filters the inventory.
  • Inventory: six .hm-car cards with data-hm-body, data-hm-make, data-hm-cond, data-hm-price and data-hm-miles. .chip buttons filter by body type and .hm-sort re-orders the cards.
  • Financing: two Range sliders, term radios and a credit select feed an amortization formula. "Get pre-approved" opens #hm-approve, a <dialog class="dialog"> with a validated form.
  • Why us, reviews and FAQ: a feature grid, a dark review band and an exclusive <details name="hm-faq"> accordion.
  • Test drive: <form data-bs-validate novalidate> with an input Datepicker; the script sets data-bs-date-min to tomorrow and data-bs-date-max six weeks ahead. A static SVG map shows the location.

Customization

  • Change --hm-orange, --hm-ink and --hm-paper on .hm-page in style.css to rebrand. Update the --bs-primary-* lines next to them as well.
  • Add vehicles by copying an .hm-car article and setting its data-hm-* attributes. The chips, search and sort pick it up automatically.
  • Edit the <option value> APR rates in #hm-credit to match your lenders.
  • Replace the setTimeout in the .hm-form and .hm-approve-form submit handlers with fetch() calls to your CRM or lead endpoint.
  • Change the + 42 day offset in script.js to widen the booking window.
  • Remove sections such as .hm-reviews or .hm-faq-wrap, together with their navbar links, for a shorter page.

The car and portrait photos come from Unsplash. Replace them with photos of your own stock and customers.

The footer credit links to WebDevSnippets; you can keep it or remove it.

Use cases

  • Car dealerships: an inventory search with make, body type and price slider narrows the vehicle list
  • Used and new car lots: filter chips and sorting reorder vehicle cards by body type and price
  • Financing leads: a payment calculator and pre-approval dialog attract buyers who want monthly figures
  • Test drives: the booking form with datepicker lets shoppers schedule a visit up to six weeks ahead

Accessibility

A skip link jumps to #hm-main. Chips use aria-pressed, the result count and payment are aria-live regions, the map is a labelled role="img", and invalid fields get .is-invalid and focus. Focus outlines are orange; hover lifts stop under prefers-reduced-motion.

Bootstrap 6 notes

This page is built on Bootstrap 6.0.0-alpha.1, and alpha APIs can still change. Coming from Bootstrap 5:

  • btn-solid theme-primary replaces btn-primary.
  • The navbar uses Drawer instead of navbar-collapse, and Dropdown is now Menu.
  • Modal is now a native Dialog, and form-select is gone (use form-control on the select).
  • Combobox, Datepicker, Range and Chips are new components.
  • Validation uses data-bs-validate.
  • The Combobox may log a harmless "more than one instance" warning in alpha.1.

Car Dealership Homepage Template at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons, fonts.googleapis.com
Layout
Responsive, works on mobile
Category
Home Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Car Dealership Homepage Template code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 6 and Bootstrap Icons and fonts.googleapis.com from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Car Dealership Homepage Template – free Bootstrap 6 home page template
Car Dealership Homepage Template · free Bootstrap 6 home page template

More Home Pages

Restaurant Homepage Template – free Bootstrap 6 home page template

Restaurant Homepage Template

Dark Bootstrap 6 restaurant homepage with a photo hero, live opening status, tabbed menu highlights, chef story, reviews, a datepicker reservation form and footer.

Music Band Homepage Template – free Bootstrap 6 home page template

Music Band Homepage Template

Dark Bootstrap 6 music band homepage with a photo hero, relative tour dates with a region filter, album tracklists, video dialog, press quotes and a mailing list form.

Event Conference Homepage Template – free Bootstrap 6 home page template

Event Conference Homepage Template

Dark Bootstrap 6 tech conference homepage template with a live countdown hero, speaker dialogs, two-day schedule tabs with track filters, ticket tiers with a team Range slider and FAQ.

Fitness Gym Homepage Template – free Bootstrap 6 home page template

Fitness Gym Homepage Template

Dark Bootstrap 6 gym homepage with drawer navbar, photo hero, programs, a weekly class timetable, membership plans with a range-based recommender, coaches and a free-pass form.

Barbershop Homepage Template – free Bootstrap 6 home page template

Barbershop Homepage Template

Dark Bootstrap 6 barbershop homepage with a drawer navbar, price-list tabs, barber cards, a booking form with Combobox and Datepicker, reviews, live opening hours and a footer.

Interior Design Homepage Template – free Bootstrap 6 home page template

Interior Design Homepage Template

Warm Bootstrap 6 interior design homepage with arched photo hero, services, tabbed portfolio, before/after range slider, process accordion, reviews and a consultation form with datepicker.