Build a Luxury Real Estate Website with HTML & Bootstrap 5
Welcome to Code With Ilyasoft! In this step-by-step tutorial, we will break down the Estate Luxe luxury real estate website into 12 practical lessons. You will learn how each section is structured and how Bootstrap classes help create a responsive layout.
Technologies: HTML5, Bootstrap 5.3.3 and Bootstrap Icons 1.11.3.
Before You Start: Add the Required Bootstrap Files
The original project loads Bootstrap CSS and Bootstrap Icons in the document head, and the Bootstrap JavaScript bundle before the closing body tag. For a Blogger tutorial post, include these dependencies in your website template or page only once. The snippets below contain the individual page sections.
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Bootstrap JavaScript bundle — add once before </body>:
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
Lesson 1: Navigation Bar
The navigation bar gives visitors quick access to the main areas of the website. Bootstrap’s navbar, collapse, and responsive utility classes make it adapt to smaller screens. The menu links use section IDs such as #home, #properties, and #contact to jump to the matching sections.
<!-- Navigation Bar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<div class="container">
<a class="navbar-brand fw-bold" href="#">
<i class="bi bi-buildings text-warning"></i>
ESTATE LUXE
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#mainNavbar"
aria-controls="mainNavbar"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainNavbar">
<ul class="navbar-nav ms-auto align-items-lg-center">
<li class="nav-item">
<a class="nav-link active" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#properties">Properties</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#services">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
<li class="nav-item ms-lg-3 mt-3 mt-lg-0">
<a href="#properties"
class="btn btn-outline-warning rounded-0 px-4">
Explore Properties
</a>
</li>
</ul>
</div>
</div>
</nav>
Lesson 2: Hero Section
The hero is the first major visual area visitors see. It uses a background image with a dark gradient overlay so the white heading and supporting text remain readable. Bootstrap flex and spacing classes align the content, while the buttons guide visitors to the properties and contact sections.
<!-- Hero Section -->
<section id="home"
class="hero-section d-flex align-items-center"
style="
min-height: 650px;
background:
linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2000&q=85');
background-size: cover;
background-position: center;
background-repeat: no-repeat;">
<div class="container">
<div class="row">
<div class="col-lg-8 col-xl-7 text-white">
<p class="text-uppercase text-warning fw-semibold mb-3">
Luxury Real Estate Experience
</p>
<h1 class="display-2 fw-bold mb-4">
Discover a Life
<span class="text-warning">Beyond Ordinary.</span>
</h1>
<p class="lead mb-4">
Explore exceptional properties, premium locations,
and extraordinary living experiences with Estate Luxe.
</p>
<div class="d-flex flex-wrap gap-3">
<a href="#properties"
class="btn btn-warning btn-lg rounded-0 px-4">
Explore Properties
<i class="bi bi-arrow-right"></i>
</a>
<a href="#contact"
class="btn btn-outline-light btn-lg rounded-0 px-4">
Contact Us
</a>
</div>
</div>
</div>
</div>
</section>
Lesson 3: Property Search Section
This section presents a property-search interface with location, property type, and maximum-budget filters. Bootstrap’s grid and form classes arrange the controls responsively. The supplied code provides the form UI only; it does not include JavaScript or a backend to filter the property cards.
<!-- Property Search Section -->
<section class="bg-light py-5">
<div class="container">
<div class="card border-0 shadow-lg rounded-0 p-4">
<!-- Search Heading -->
<div class="mb-4">
<h3 class="fw-bold">
Find Your Perfect Property
</h3>
<p class="text-secondary mb-0">
Search luxury properties that match your lifestyle.
</p>
</div>
<!-- Search Form -->
<form>
<div class="row g-3 align-items-end">
<!-- Location -->
<div class="col-lg-3 col-md-6">
<label class="form-label fw-semibold">
Location
</label>
<select class="form-select" id="search-location">
<option value="">All Locations</option>
<option value="Islamabad">Islamabad</option>
<option value="Lahore">Lahore</option>
<option value="Karachi">Karachi</option>
<option value="Dubai">Dubai</option>
</select>
</div>
<!-- Property Type -->
<div class="col-lg-3 col-md-6">
<label class="form-label fw-semibold">
Property Type
</label>
<select class="form-select" id="search-type">
<option value="">All Types</option>
<option value="Villa">Villa</option>
<option value="Apartment">Apartment</option>
<option value="House">House</option>
</select>
</div>
<!-- Budget -->
<div class="col-lg-3 col-md-6">
<label class="form-label fw-semibold">
Maximum Budget
</label>
<select class="form-select" id="search-budget">
<option value="0">Any Budget</option>
<option value="200000">Up to $200,000</option>
<option value="300000">Up to $300,000</option>
<option value="400000">Up to $400,000</option>
<option value="500000">Up to $500,000</option>
<option value="1000000">Up to $1,000,000</option>
</select>
</div>
<!-- Search Button -->
<div class="col-lg-3 col-md-6">
<button class="btn btn-warning w-100" id="search-properties">
<i class="bi bi-search"></i>
Search Properties
</button>
<button
class="btn btn-outline-dark w-100"
id="clear-filters">
<i class="bi bi-arrow-counterclockwise"></i>
Clear Filters
</button>
</div>
</div>
</form>
</div>
</div>
</section>
Lesson 4: About Section
The About section introduces the real estate brand using a two-column layout: an image on one side and company information on the other. The nested Bootstrap rows and columns stack on smaller screens. The experience highlights use a smaller two-column grid inside the content column.
<!-- About Section -->
<section id="about" class="py-5">
<div class="container py-lg-5">
<div class="row align-items-center g-5">
<!-- About Image -->
<div class="col-lg-6">
<img
src="https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1000&q=85"
alt="Luxury modern property"
class="img-fluid shadow-lg w-100">
</div>
<!-- About Content -->
<div class="col-lg-6">
<p class="text-warning fw-semibold text-uppercase mb-3">
About Estate Luxe
</p>
<h2 class="display-5 fw-bold mb-4">
Redefining the Art of
<span class="text-warning">Luxury Living.</span>
</h2>
<p class="text-secondary mb-4">
At Estate Luxe, we believe finding a property
should be an extraordinary experience.
We connect people with exceptional homes,
premium locations and outstanding
real estate opportunities.
</p>
<p class="text-secondary mb-4">
Whether you are searching for your dream home
or a valuable investment, our team is here
to help you make the right choice.
</p>
<!-- Experience Highlights -->
<div class="row g-3 mb-4">
<div class="col-6">
<h3 class="fw-bold mb-1">
10+
</h3>
<p class="text-secondary mb-0">
Years of Experience
</p>
</div>
<div class="col-6">
<h3 class="fw-bold mb-1">
500+
</h3>
<p class="text-secondary mb-0">
Properties Listed
</p>
</div>
</div>
<!-- About Button -->
<a href="#contact"
class="btn btn-dark btn-lg rounded-0 px-4">
Discover More
<i class="bi bi-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
</section>
Lesson 5: Properties Section
The Properties section displays three featured listings as responsive Bootstrap cards. Each card contains a property image, location, name, price, features, and a link to the contact section. The sort dropdown is included as an interface element; sorting logic is not included in the supplied HTML.
<!-- Properties Section -->
<section id="properties" class="py-5 bg-light">
<div class="container py-lg-5">
<!-- Section Heading -->
<div class="text-center mb-5">
<p class="text-warning fw-semibold text-uppercase">
Discover Our Collection
</p>
<h2 class="display-5 fw-bold">
Featured Properties
</h2>
<p class="text-secondary">
Explore exceptional properties selected for you.
</p>
</div>
<div class="row align-items-center mb-4">
<div class="col-md-6">
<p class="text-secondary mb-2 mb-md-0">
Explore our exclusive property collection.
</p>
</div>
<div class="col-md-6">
<div class="d-flex align-items-center justify-content-md-end gap-2">
<label for="sort-properties" class="fw-semibold text-nowrap">
Sort By:
</label>
<select class="form-select w-auto" id="sort-properties">
<option value="default">Default Order</option>
<option value="price-low">
Price: Low to High
</option>
<option value="price-high">
Price: High to Low
</option>
<option value="name">
Name: A to Z
</option>
<option value="area">
Area: Largest First
</option>
</select>
</div>
</div>
</div>
<!-- Property Cards -->
<div class="row g-4">
<!-- Property 1 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0">
<div class="position-relative">
<img
src="https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=85"
class="card-img-top rounded-0"
alt="Luxury modern villa"
style="height: 250px; object-fit: cover;"
>
<span class="badge bg-warning text-dark position-absolute top-0 start-0 m-3">
Featured
</span>
</div>
<div class="card-body p-4">
<p class="text-secondary small mb-2">
<i class="bi bi-geo-alt"></i>
Islamabad, Pakistan
</p>
<h5 class="card-title fw-bold">
Modern Luxury Villa
</h5>
<h4 class="text-warning fw-bold mb-3">
$450,000
</h4>
<hr>
<div class="d-flex justify-content-between text-secondary small mb-4">
<span>
<i class="bi bi-house"></i> 4 Beds
</span>
<span>
<i class="bi bi-droplet"></i> 3 Baths
</span>
<span>
<i class="bi bi-aspect-ratio"></i> 3,200 sqft
</span>
</div>
<a href="#contact"
class="btn btn-dark w-100 rounded-0">
View Property
<i class="bi bi-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
<!-- Property 2 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0">
<div class="position-relative">
<img
src="https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=900&q=85"
class="card-img-top rounded-0"
alt="Luxury modern apartment"
style="height: 250px; object-fit: cover;"
>
<span class="badge bg-dark position-absolute top-0 start-0 m-3">
Premium
</span>
</div>
<div class="card-body p-4">
<p class="text-secondary small mb-2">
<i class="bi bi-geo-alt"></i>
Dubai, UAE
</p>
<h5 class="card-title fw-bold">
Premium City Apartment
</h5>
<h4 class="text-warning fw-bold mb-3">
$320,000
</h4>
<hr>
<div class="d-flex justify-content-between text-secondary small mb-4">
<span>
<i class="bi bi-house"></i> 3 Beds
</span>
<span>
<i class="bi bi-droplet"></i> 2 Baths
</span>
<span>
<i class="bi bi-aspect-ratio"></i> 1,800 sqft
</span>
</div>
<a href="#contact"
class="btn btn-dark w-100 rounded-0">
View Property
<i class="bi bi-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
<!-- Property 3 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0">
<div class="position-relative">
<img
src="https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=900&q=85"
class="card-img-top rounded-0"
alt="Contemporary luxury house"
style="height: 250px; object-fit: cover;"
>
<span class="badge bg-warning text-dark position-absolute top-0 start-0 m-3">
New Listing
</span>
</div>
<div class="card-body p-4">
<p class="text-secondary small mb-2">
<i class="bi bi-geo-alt"></i>
Lahore, Pakistan
</p>
<h5 class="card-title fw-bold">
Contemporary Family Home
</h5>
<h4 class="text-warning fw-bold mb-3">
$275,000
</h4>
<hr>
<div class="d-flex justify-content-between text-secondary small mb-4">
<span>
<i class="bi bi-house"></i> 4 Beds
</span>
<span>
<i class="bi bi-droplet"></i> 4 Baths
</span>
<span>
<i class="bi bi-aspect-ratio"></i> 2,500 sqft
</span>
</div>
<a href="#contact"
class="btn btn-dark w-100 rounded-0">
View Property
<i class="bi bi-arrow-right ms-2"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
Lesson 6: Statistics Section
The Statistics section highlights key business figures in four columns. Bootstrap’s responsive grid changes the number of columns according to screen width. Bootstrap Icons add a visual symbol above each statistic.
<!-- Statistics Section -->
<section class="py-5 bg-dark text-white">
<div class="container py-lg-4">
<div class="row text-center g-4">
<!-- Statistic 1 -->
<div class="col-lg-3 col-md-6">
<i class="bi bi-buildings text-warning fs-1"></i>
<h2 class="display-4 fw-bold text-warning mt-3">
500+
</h2>
<p class="text-white-50 mb-0">
Properties Listed
</p>
</div>
<!-- Statistic 2 -->
<div class="col-lg-3 col-md-6">
<i class="bi bi-people text-warning fs-1"></i>
<h2 class="display-4 fw-bold text-warning mt-3">
350+
</h2>
<p class="text-white-50 mb-0">
Happy Clients
</p>
</div>
<!-- Statistic 3 -->
<div class="col-lg-3 col-md-6">
<i class="bi bi-house-check text-warning fs-1"></i>
<h2 class="display-4 fw-bold text-warning mt-3">
250+
</h2>
<p class="text-white-50 mb-0">
Successful Deals
</p>
</div>
<!-- Statistic 4 -->
<div class="col-lg-3 col-md-6">
<i class="bi bi-award text-warning fs-1"></i>
<h2 class="display-4 fw-bold text-warning mt-3">
10+
</h2>
<p class="text-white-50 mb-0">
Years of Experience
</p>
</div>
</div>
</div>
</section>
Lesson 7: Services Section
The Services section explains the four main real estate services using evenly sized cards. The Bootstrap grid displays four cards on large screens and fewer columns on smaller screens. The h-100 and mt-auto classes help keep card heights and links aligned.
<!-- Services Section -->
<section id="services" class="py-5 bg-light">
<div class="container py-lg-5">
<!-- Section Heading -->
<div class="text-center mb-5">
<p class="text-warning fw-semibold text-uppercase mb-2">
What We Offer
</p>
<h2 class="display-5 fw-bold">
Our Premium Services
</h2>
<p class="text-secondary mx-auto mt-3" style="max-width: 650px;">
From finding your dream home to managing your property,
we provide professional real estate solutions.
</p>
</div>
<!-- Services Cards -->
<div class="row g-4">
<!-- Service 1 -->
<div class="col-lg-3 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0 p-4 text-center">
<div class="mb-3">
<i class="bi bi-house-door text-warning fs-1"></i>
</div>
<h5 class="fw-bold">Property Buying</h5>
<p class="text-secondary">
Find your ideal property with expert guidance
and personalized recommendations.
</p>
<a href="#contact" class="text-dark fw-semibold text-decoration-none mt-auto">
Learn More <i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<!-- Service 2 -->
<div class="col-lg-3 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0 p-4 text-center">
<div class="mb-3">
<i class="bi bi-key text-warning fs-1"></i>
</div>
<h5 class="fw-bold">Property Selling</h5>
<p class="text-secondary">
Sell your property with strategic marketing
and professional support.
</p>
<a href="#contact" class="text-dark fw-semibold text-decoration-none mt-auto">
Learn More <i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<!-- Service 3 -->
<div class="col-lg-3 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0 p-4 text-center">
<div class="mb-3">
<i class="bi bi-graph-up-arrow text-warning fs-1"></i>
</div>
<h5 class="fw-bold">Real Estate Investment</h5>
<p class="text-secondary">
Explore property investment opportunities
with informed market insights.
</p>
<a href="#contact" class="text-dark fw-semibold text-decoration-none mt-auto">
Learn More <i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
<!-- Service 4 -->
<div class="col-lg-3 col-md-6">
<div class="card border-0 shadow-sm h-100 rounded-0 p-4 text-center">
<div class="mb-3">
<i class="bi bi-buildings text-warning fs-1"></i>
</div>
<h5 class="fw-bold">Property Management</h5>
<p class="text-secondary">
Keep your property professionally managed
with reliable support and care.
</p>
<a href="#contact" class="text-dark fw-semibold text-decoration-none mt-auto">
Learn More <i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
</div>
</div>
</section>
Lesson 8: Team Section
The Team section introduces three professionals with portrait images, names, job titles, and social icons. Each member is placed in a Bootstrap card, and the responsive grid controls how the cards wrap on tablets and mobile devices.
<!-- Team Section -->
<section id="team" class="py-5 bg-white">
<div class="container py-lg-5">
<!-- Section Heading -->
<div class="text-center mb-5">
<p class="text-warning fw-semibold text-uppercase mb-2">
Meet Our Experts
</p>
<h2 class="display-5 fw-bold">
The People Behind Estate Luxe
</h2>
<p class="text-secondary mx-auto mt-3" style="max-width: 650px;">
Meet our dedicated professionals who are committed
to helping you find exceptional properties.
</p>
</div>
<!-- Team Members -->
<div class="row g-4">
<!-- Team Member 1 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm rounded-0 h-100">
<img
src="https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=800&q=85"
class="card-img-top"
alt="James Anderson"
style="height: 350px; object-fit: cover;"
>
<div class="card-body text-center p-4">
<h4 class="fw-bold mb-1">James Anderson</h4>
<p class="text-warning fw-semibold">
Chief Executive Officer
</p>
<div class="d-flex justify-content-center gap-3">
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-linkedin"></i>
</a>
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-facebook"></i>
</a>
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-instagram"></i>
</a>
</div>
</div>
</div>
</div>
<!-- Team Member 2 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm rounded-0 h-100">
<img
src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=800&q=85"
class="card-img-top"
alt="Sophia Williams"
style="height: 350px; object-fit: cover;"
>
<div class="card-body text-center p-4">
<h4 class="fw-bold mb-1">Sophia Williams</h4>
<p class="text-warning fw-semibold">
Senior Property Consultant
</p>
<div class="d-flex justify-content-center gap-3">
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-linkedin"></i>
</a>
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-facebook"></i>
</a>
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-instagram"></i>
</a>
</div>
</div>
</div>
</div>
<!-- Team Member 3 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm rounded-0 h-100">
<img
src="https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?auto=format&fit=crop&w=800&q=85"
class="card-img-top"
alt="Daniel Smith"
style="height: 350px; object-fit: cover;"
>
<div class="card-body text-center p-4">
<h4 class="fw-bold mb-1">Daniel Smith</h4>
<p class="text-warning fw-semibold">
Real Estate Investment Advisor
</p>
<div class="d-flex justify-content-center gap-3">
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-linkedin"></i>
</a>
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-facebook"></i>
</a>
<a href="#contact" class="text-dark fs-5">
<i class="bi bi-instagram"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
Lesson 9: Testimonials Section
The Testimonials section presents three client comments. Each card includes a five-star row, quotation icon, review text, and a small client profile. Bootstrap flex utilities align each profile image with the client’s name and role.
<!-- Testimonials Section -->
<section id="testimonials" class="py-5 bg-light">
<div class="container py-lg-5">
<!-- Section Heading -->
<div class="text-center mb-5">
<p class="text-warning fw-semibold text-uppercase mb-2">
Client Experiences
</p>
<h2 class="display-5 fw-bold">
What Our Clients Say
</h2>
<p class="text-secondary mx-auto mt-3" style="max-width: 650px;">
Discover the experiences of people who trusted
Estate Luxe with their property journey.
</p>
</div>
<!-- Testimonial Cards -->
<div class="row g-4">
<!-- Testimonial 1 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm rounded-0 h-100 p-4">
<div class="text-warning mb-3">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
<i class="bi bi-quote text-warning fs-1"></i>
<p class="text-secondary">
Estate Luxe made finding our dream home
a smooth and enjoyable experience.
Their team provided excellent guidance
throughout the process.
</p>
<hr>
<div class="d-flex align-items-center gap-3">
<img
src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=150&q=85"
alt="Michael Brown"
class="rounded-circle"
width="60"
height="60"
style="object-fit: cover;"
>
<div>
<h6 class="fw-bold mb-1">Michael Brown</h6>
<small class="text-secondary">
Property Buyer
</small>
</div>
</div>
</div>
</div>
<!-- Testimonial 2 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm rounded-0 h-100 p-4">
<div class="text-warning mb-3">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
<i class="bi bi-quote text-warning fs-1"></i>
<p class="text-secondary">
The team understood our requirements
and helped us explore excellent property
options. Their professional approach
made the experience much easier.
</p>
<hr>
<div class="d-flex align-items-center gap-3">
<img
src="https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=150&q=85"
alt="Emily Johnson"
class="rounded-circle"
width="60"
height="60"
style="object-fit: cover;"
>
<div>
<h6 class="fw-bold mb-1">Emily Johnson</h6>
<small class="text-secondary">
Home Buyer
</small>
</div>
</div>
</div>
</div>
<!-- Testimonial 3 -->
<div class="col-lg-4 col-md-6">
<div class="card border-0 shadow-sm rounded-0 h-100 p-4">
<div class="text-warning mb-3">
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
<i class="bi bi-star-fill"></i>
</div>
<i class="bi bi-quote text-warning fs-1"></i>
<p class="text-secondary">
We received helpful advice throughout
our property investment journey.
Estate Luxe provided clear communication
and professional support.
</p>
<hr>
<div class="d-flex align-items-center gap-3">
<img
src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=150&q=85"
alt="David Wilson"
class="rounded-circle"
width="60"
height="60"
style="object-fit: cover;"
>
<div>
<h6 class="fw-bold mb-1">David Wilson</h6>
<small class="text-secondary">
Property Investor
</small>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
Lesson 10: Contact Section
The Contact section uses two columns: business contact information and a message form. Bootstrap form-control, form-select, and grid classes style and arrange the fields. The form has required-field browser validation, but the supplied code does not connect it to an email service or server endpoint.
<!-- Contact Section -->
<section id="contact" class="py-5 bg-light">
<div class="container py-lg-5">
<!-- Section Heading -->
<div class="text-center mb-5">
<p class="text-warning fw-semibold text-uppercase mb-2">
Get In Touch
</p>
<h2 class="display-5 fw-bold">
Let's Find Your Dream Property
</h2>
<p class="text-secondary mx-auto mt-3" style="max-width: 650px;">
Have a question or looking for your next property?
Contact our team and let us help you.
</p>
</div>
<div class="row g-5">
<!-- Contact Information -->
<div class="col-lg-5">
<div class="bg-dark text-white p-4 p-lg-5 h-100">
<h3 class="fw-bold mb-4">
Contact Information
</h3>
<p class="text-white-50 mb-5">
Our team is ready to assist you with your
property requirements and inquiries.
</p>
<!-- Address -->
<div class="d-flex gap-3 mb-4">
<i class="bi bi-geo-alt text-warning fs-3"></i>
<div>
<h6 class="fw-bold">Our Office</h6>
<p class="text-white-50 mb-0">
Peshawar, KPK, Pakistan
</p>
</div>
</div>
<!-- Phone -->
<div class="d-flex gap-3 mb-4">
<i class="bi bi-telephone text-warning fs-3"></i>
<div>
<h6 class="fw-bold">Phone Number</h6>
<p class="text-white-50 mb-0">
+92-314-3076781
</p>
</div>
</div>
<!-- Email -->
<div class="d-flex gap-3 mb-5">
<i class="bi bi-envelope text-warning fs-3"></i>
<div>
<h6 class="fw-bold">Email Address</h6>
<p class="text-white-50 mb-0">
software.engr.ilyas@gmail.com
</p>
</div>
</div>
<!-- Social Media -->
<h6 class="fw-bold mb-3">Follow Us</h6>
<div class="d-flex gap-3">
<a href="#" class="text-warning fs-4">
<i class="bi bi-facebook"></i>
</a>
<a href="#" class="text-warning fs-4">
<i class="bi bi-instagram"></i>
</a>
<a href="#" class="text-warning fs-4">
<i class="bi bi-linkedin"></i>
</a>
<a href="#" class="text-warning fs-4">
<i class="bi bi-youtube"></i>
</a>
</div>
</div>
</div>
<!-- Contact Form -->
<div class="col-lg-7">
<div class="bg-white shadow-sm p-4 p-lg-5 h-100">
<h3 class="fw-bold mb-4">
Send Us a Message
</h3>
<form id="contactForm">
<!-- Name and Email -->
<div class="row g-3 mb-3">
<div class="col-md-6">
<label class="form-label fw-semibold">
Full Name
</label>
<input
type="text"
class="form-control rounded-0 p-3"
placeholder="Enter your name"
required
>
</div>
<div class="col-md-6">
<label class="form-label fw-semibold">
Email Address
</label>
<input
type="email"
class="form-control rounded-0 p-3"
placeholder="Enter your email"
required
>
</div>
</div>
<!-- Phone and Subject -->
<div class="row g-3 mb-3">
<div class="col-md-6">
<label class="form-label fw-semibold">
Phone Number
</label>
<input
type="tel"
class="form-control rounded-0 p-3"
placeholder="Enter your phone number"
>
</div>
<div class="col-md-6">
<label class="form-label fw-semibold">
Subject
</label>
<select
class="form-select rounded-0 p-3"
required
>
<option value="">Select Subject</option>
<option>Buying a Property</option>
<option>Selling a Property</option>
<option>Property Investment</option>
<option>Property Management</option>
<option>Other Inquiry</option>
</select>
</div>
</div>
<!-- Message -->
<div class="mb-4">
<label class="form-label fw-semibold">
Your Message
</label>
<textarea
class="form-control rounded-0 p-3"
rows="5"
placeholder="Write your message here..."
required
></textarea>
</div>
<!-- Submit Button -->
<button
type="submit"
class="btn btn-warning btn-lg rounded-0 px-5"
>
Send Message
<i class="bi bi-arrow-right ms-2"></i>
</button>
</form>
</div>
</div>
</div>
</div>
</section>
Lesson 11: Google Maps Section
The Google Maps section embeds a map in an iframe. The iframe uses a responsive width, a fixed height, lazy loading, and a descriptive title. Replace the embed URL with your own Google Maps embed URL if you want to display a different office location.
<!-- Google Maps Section -->
<section id="location" class="py-5 bg-white">
<div class="container">
<!-- Section Heading -->
<div class="text-center mb-4">
<p class="text-warning fw-semibold text-uppercase mb-2">
Find Our Office
</p>
<h2 class="display-5 fw-bold">
Visit Estate Luxe
</h2>
<p class="text-secondary">
Find our office location and connect with our team.
</p>
</div>
<!-- Google Map -->
<div class="shadow-sm">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3307.6182087211705!2d71.5459669!3d34.0023391!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x38d911c5e5e414df%3A0x6c4a6f0c0ca534a!2sIlyasoft%20Software%20Company!5e0!3m2!1sen!2s!4v1794468273844!5m2!1sen!2s"
width="100%"
height="450"
style="border: 0;"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
title="Estate Luxe Office Location">
</iframe>
</div>
</div>
</section>
Lesson 12: Footer Section
The footer closes the page with company information, social links, quick navigation, service links, and contact details. Bootstrap’s grid creates four content columns on wider screens and stacks them on smaller screens. The copyright row places its content on opposite sides on desktop.
<!-- Footer Section -->
<footer class="bg-dark text-white pt-5 pb-3">
<div class="container">
<div class="row g-4 pb-4">
<!-- Company Information -->
<div class="col-lg-4 col-md-6">
<h3 class="fw-bold mb-3">
<i class="bi bi-buildings text-warning"></i>
Estate <span class="text-warning">Luxe</span>
</h3>
<p class="text-white-50">
Discover exceptional properties and extraordinary
living experiences with our professional real
estate services.
</p>
<!-- Social Media -->
<div class="d-flex gap-3 mt-4">
<a href="#" class="text-warning fs-5">
<i class="bi bi-facebook"></i>
</a>
<a href="#" class="text-warning fs-5">
<i class="bi bi-instagram"></i>
</a>
<a href="#" class="text-warning fs-5">
<i class="bi bi-linkedin"></i>
</a>
<a href="#" class="text-warning fs-5">
<i class="bi bi-youtube"></i>
</a>
</div>
</div>
<!-- Quick Links -->
<div class="col-lg-2 col-md-6">
<h5 class="fw-bold mb-4">Quick Links</h5>
<ul class="list-unstyled">
<li class="mb-3">
<a href="#home" class="text-white-50 text-decoration-none">
Home
</a>
</li>
<li class="mb-3">
<a href="#about" class="text-white-50 text-decoration-none">
About Us
</a>
</li>
<li class="mb-3">
<a href="#properties" class="text-white-50 text-decoration-none">
Properties
</a>
</li>
<li class="mb-3">
<a href="#team" class="text-white-50 text-decoration-none">
Our Team
</a>
</li>
<li class="mb-3">
<a href="#contact" class="text-white-50 text-decoration-none">
Contact
</a>
</li>
</ul>
</div>
<!-- Our Services -->
<div class="col-lg-3 col-md-6">
<h5 class="fw-bold mb-4">Our Services</h5>
<ul class="list-unstyled">
<li class="mb-3">
<a href="#services" class="text-white-50 text-decoration-none">
Property Buying
</a>
</li>
<li class="mb-3">
<a href="#services" class="text-white-50 text-decoration-none">
Property Selling
</a>
</li>
<li class="mb-3">
<a href="#services" class="text-white-50 text-decoration-none">
Real Estate Investment
</a>
</li>
<li class="mb-3">
<a href="#services" class="text-white-50 text-decoration-none">
Property Management
</a>
</li>
</ul>
</div>
<!-- Contact Information -->
<div class="col-lg-3 col-md-6">
<h5 class="fw-bold mb-4">Contact Us</h5>
<p class="text-white-50">
<i class="bi bi-geo-alt text-warning me-2"></i>
Blue Area, Islamabad, Pakistan
</p>
<p class="text-white-50">
<i class="bi bi-telephone text-warning me-2"></i>
+92 300 1234567
</p>
<p class="text-white-50">
<i class="bi bi-envelope text-warning me-2"></i>
info@estateluxe.com
</p>
</div>
</div>
<hr class="border-secondary">
<!-- Copyright -->
<div class="row align-items-center pt-2">
<div class="col-md-6 text-center text-md-start">
<p class="text-white-50 mb-2 mb-md-0">
© 2026 Estate Luxe. All Rights Reserved.
</p>
</div>
<div class="col-md-6 text-center text-md-end">
<a href="#" class="text-white-50 text-decoration-none me-3">
Privacy Policy
</a>
<a href="#" class="text-white-50 text-decoration-none">
Terms & Conditions
</a>
</div>
</div>
</div>
</footer>
Final Step: Complete Your Website
- Create an HTML file, for example index.html.
- Add the Bootstrap CSS and Bootstrap Icons dependencies inside the document head.
- Copy the 12 lesson snippets in the same order and place them inside the body.
- Add the Bootstrap JavaScript bundle before the closing body tag so the responsive navigation toggle works.
- Open the file in your browser and test the layout at desktop, tablet, and mobile widths.
Tutorial prepared for Code With Ilyasoft.

Comments
Post a Comment