User-Friendly Travel Booking Form in Bootstrap 5
<!doctype html> <html> <head> <meta charset='utf-8'> <meta name='viewport' content='width=device-width, initial-scale=1'> <title>User Friendly Travel Booking Form in Bootstrap 5</title> <link href='https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css' rel='stylesheet'> </head> <body> <div id="booking" class="section"> <div class="section-center"> <div class="container"> <div class="row"> <div class="col-md-7 col-md-push-5"> <div class="booking-cta"> <h1>Make your reservation</h1> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi facere, soluta magnam consectetur molestias itaque ad sint fugit architecto incidunt iste culpa perspiciatis possimus voluptates aliquid consequuntur cumque quasi. Perspiciatis. </p> </div> </div> <div class="col-md-4 col-md-pull-7"> <div class="booking-form"> <form> <div class="form-group"> <span class="form-label">Your Destination</span> <input class="form-control" type="text" placeholder="Enter a destination or hotel name"> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <span class="form-label">Check In</span> <input class="form-control" type="date" required> </div> </div> <div class="col-sm-6"> <div class="form-group"> <span class="form-label">Check out</span> <input class="form-control" type="date" required> </div> </div> </div> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <span class="form-label">Rooms</span> <select class="form-control"> <option>1</option> <option>2</option> <option>3</option> </select> <span class="select-arrow"></span> </div> </div> <div class="col-sm-4"> <div class="form-group"> <span class="form-label">Adults</span> <select class="form-control"> <option>1</option> <option>2</option> <option>3</option> </select> <span class="select-arrow"></span> </div> </div> <div class="col-sm-4"> <div class="form-group"> <span class="form-label">Children</span> <select class="form-control"> <option>0</option> <option>1</option> <option>2</option> </select> <span class="select-arrow"></span> </div> </div> </div> <div class="form-btn"> <button class="submit-btn">Check availability</button> </div> </form> </div> </div> </div> </div> </div> </div> <script type='text/javascript' src='https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js'></script> <script type='text/javascript' src='https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js'> </script> </body> </html>
.section { position: relative; height: 100vh; } .section .section-center { position: absolute; top: 50%; left: 0; right: 0; -webkit-transform: translateY(-50%); transform: translateY(-50%); } #booking { font-family: 'Montserrat', sans-serif; background-image: url('https://i.imgur.com/ZaRYfYW.jpg'); background-size: cover; background-position: center; } #booking::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; top: 0; background: rgba(47, 103, 177, 0.6); } .booking-form { background-color: #fff; padding: 50px 20px; -webkit-box-shadow: 0px 5px 20px -5px rgba(0, 0, 0, 0.3); box-shadow: 0px 5px 20px -5px rgba(0, 0, 0, 0.3); border-radius: 4px; } .booking-form .form-group { position: relative; margin-bottom: 30px; } .booking-form .form-control { background-color: #ebecee; border-radius: 4px; border: none; height: 40px; -webkit-box-shadow: none; box-shadow: none; color: #3e485c; font-size: 14px; } .booking-form .form-control::-webkit-input-placeholder { color: rgba(62, 72, 92, 0.3); } .booking-form .form-control:-ms-input-placeholder { color: rgba(62, 72, 92, 0.3); } .booking-form .form-control::placeholder { color: rgba(62, 72, 92, 0.3); } .booking-form input[type="date"].form-control:invalid { color: rgba(62, 72, 92, 0.3); } .booking-form select.form-control { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .booking-form select.form-control+.select-arrow { position: absolute; right: 0px; bottom: 4px; width: 32px; line-height: 32px; height: 32px; text-align: center; pointer-events: none; color: rgba(62, 72, 92, 0.3); font-size: 14px; } .booking-form select.form-control+.select-arrow:after { content: '\279C'; display: block; -webkit-transform: rotate(90deg); transform: rotate(90deg); } .booking-form .form-label { display: inline-block; color: #3e485c; font-weight: 700; margin-bottom: 6px; margin-left: 7px; } .booking-form .submit-btn { display: inline-block; color: #fff; background-color: #1e62d8; font-weight: 700; padding: 14px 30px; border-radius: 4px; border: none; -webkit-transition: 0.2s all; transition: 0.2s all; } .booking-form .submit-btn:hover, .booking-form .submit-btn:focus { opacity: 0.9; } .booking-cta { margin-top: 80px; margin-bottom: 30px; } .booking-cta h1 { font-size: 52px; text-transform: uppercase; color: #fff; font-weight: 700; } .booking-cta p { font-size: 16px; color: rgba(255, 255, 255, 0.8); }
//Doesn't require any JS.
This Bootstrap 5 snippet provides a visually appealing and user-friendly travel booking form designed to streamline the reservation process for your website visitors. The form offers a clean and intuitive interface, making it easy for users to input their travel preferences and proceed with the booking process.
Key Features:
- Responsive Design: The form adapts seamlessly to different screen sizes, ensuring a consistent user experience across devices.
- Customizable Styling: Easily modify the appearance of the form using Bootstrap's CSS classes to match your website's design and branding.
- Clear Input Labels: The input fields are accompanied by clear and concise labels, guiding users in entering their information.
- Date Picker: Incorporate a date picker for easy selection of check-in and check-out dates.
Implementation:
- Include Bootstrap 5: Ensure you have Bootstrap 5 installed and configured in your project.
- Create the HTML Structure: Set up the basic HTML structure for the travel booking form, including the container, input fields, submit button, and any additional elements like a date picker.
- Apply Bootstrap Classes: Use Bootstrap's CSS classes to style the form and its elements, such as form, form-group, input, btn, card, and any other relevant classes.

Stylish Contact Form with Image in Tailwind CSS

Responsive Registration Form with Image in Tailwind CSS

Bootstrap 5 Payment Method Form Page with Invoice

Modern Pricing Table Design with Bootstrap 4

Responsive Multi-Level Drop-Down Navigation Menu in CSS

Interactive Bottom Navigation Bar Indicator with CSS

Real-time Password Strength Indicator in Bootstrap 5

Responsive Video Card Component for Tailwind CSS

Responsive Feature Highlight Component with Tailwind CSS

Multi-Step Form with International Phone Input and Nice Select

Responsive Review Cards Component with CSS3

Responsive CSS3 Timeline Design With Hover Effects
Building Blocks for Your Web Pages
Explore a collection of pre-written HTML,CSS and Javascript
snippets to jumpstart your web development projects.