Introduction
One-page websites are a popular choice for portfolios, landing pages, and small business sites, as it’s easy to navigate and provide all the vital information in a single scroll.
We’ll use Bootstrap 5 which is the latest version of the front-end framework, makes it very easy to create a responsive and visually appealing website. In this guide, we’ll learn a step-by-step guide on how to build one page website design using Bootstrap 5.
✅ Watch Live Preview 👉👉
Click Here to Download the Code
What is a One Page Website?
A one page website displays all content on a single page, organized into structured sections for easy navigation. Users can navigate to different sections using navigation links that scroll to the relevant part of the page.
This design is ideal for showcasing portfolios, promoting events, or presenting minimal information in a visually appealing format.
Why Choose This?
- Simplicity: All the information is in one place, making it easy for users to find what they need.
- Fast Loading: With fewer pages to load, it tends to be faster.
- Mobile-Friendly: They are naturally responsive and work well on all devices.
- Focused Content: Perfect for portfolios, event promotions, or small business websites.
What is Bootstrap 5?
Bootstrap is a free, open-source CSS framework that helps developers create responsive and mobile-first websites. Bootstrap 5 is the latest version, offering features like a vanilla JavaScript library (removing the jQuery dependency), improved customization options, and an enhanced grid system. Whether you’re a beginner or an experienced developer, it simplifies the process of building modern websites.
Why Use This?
Bootstrap 5 is a robust front-end framework that simplifies and accelerates website design. Here are some reasons why it’s ideal:
- Responsive Design: Its grid system ensures the website looks fantastic on all devices.
- Prebuilt Components: Buttons, modals, carousels, and more prebuilt components.
- Customizable: You can easily tweak the design using utility classes.
- Modern Features: It no longer uses jQuery and instead relies on vanilla JavaScript, making it lighter and faster
What are the Features of One Page Website?
Before diving into the steps, let’s outline:
- Clear Navigation: Use a sticky or collapsible navbar to allow users to jump to sections.
- Eye-Catching Hero Section: Include a bold heading, subheading, and call-to-action button.
- Content Sections: Organize information into sections like About, Services, Portfolio, Testimonials, and Contact.
- Smooth Scrolling: Ensure users can smoothly scroll between sections.
- Responsive Layout: Make the website mobile-friendly
You May Also Like – How to Create Animated Landing Page using HTML CSS and JavaScript
What are the Steps to Create It?
Set Up Your Project
Create a folder on your computer and add the following files inside it:
- index.html
- style.css
Source Code
HTML Code Structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>How to Build One Page Website Design using Bootstrap 5</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/2.0.11/typed.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap">
</head>
<body>
<!-- CODE -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="script.js"></script>
</body>
</html>
CSS Code Structure
< /* Your CSS code here */ >
< * { >
< margin: 0; >
< padding: 0 >
< box-sizing: border-box; >
< text-decoration: none; >
< } >
Conclusion
Building a one page website with Bootstrap 5 is simple and beginner-friendly. With its robust grid system, pre-designed components, and responsive features, it allows you to create a professional website.
Whether you’re showcasing your portfolio, promoting an event, or running a small business, a single page website is an excellent choice for delivering a seamless user experience. So, grab your code editor, follow the steps above, and start building today!
69 people bought this
Grab it Now for Just 50




