Lesson 5.7 β Mini Project: Responsive Business Website
π Building a Complete Professional Business Website Using HTML & CSS
π― Learning Objectives
After completing this lesson, students will be able to:
β Build a Complete Responsive Website
β Create Professional Navigation Bars
β Create Hero Sections
β Create Service Sections
β Create About Sections
β Create Contact Sections
β Use Flexbox, Grid, and Media Queries
β Build Real Business Websites
π Introduction
Congratulations! π
You have completed:
β Responsive Design
β Mobile First Design
β Media Queries
β Responsive Images
β Responsive Navigation Bar
β Mobile Friendly Pages
Now it is time to build a complete:
π’ Responsive Business Website
π Project Overview
We will create a business website for:
NextGen Dev Hub
The website will contain:
--------------------------------
LOGO + MENU
--------------------------------
HERO SECTION
--------------------------------
ABOUT US
--------------------------------
SERVICES
--------------------------------
CONTACT
--------------------------------
FOOTER
--------------------------------
π― Final Website Features
β Responsive Navigation
β Professional Hero Section
β About Company Section
β Services Section
β Contact Information
β Responsive Layout
β Mobile Friendly Design
ποΈ Project Files
Create:
index.html
style.css
π― Step 1 β HTML Structure
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NextGen Dev Hub</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>
</html>
π― Step 2 β Create Navigation Bar
Add inside body:
<nav>
<h2>NextGen Dev Hub</h2>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
π― Step 3 β Create Hero Section
<section class="hero">
<h1>
Grow Your Business With Us
</h1>
<p>
Professional Web Design & Development Services
</p>
<button>
Get Started
</button>
</section>
π― Step 4 β Create About Section
<section class="about">
<h2>About Us</h2>
<p>
NextGen Dev Hub provides Web Development,
Programming, Robotics, IoT and Technical Training
for students and professionals.
</p>
</section>
π― Step 5 β Create Services Section
<section class="services">
<div class="card">
<h3>Web Design</h3>
<p>
Modern Website Design
</p>
</div>
<div class="card">
<h3>Web Development</h3>
<p>
Responsive Websites
</p>
</div>
<div class="card">
<h3>Training</h3>
<p>
Programming & Technical Courses
</p>
</div>
</section>
π― Step 6 β Create Contact Section
<section class="contact">
<h2>Contact Us</h2>
<p>Email: info@nextgendevhub.com</p>
<p>Phone: +91 9876543210</p>
</section>
π― Step 7 β Create Footer
<footer>
Β© 2026 NextGen Dev Hub
</footer>
π Complete HTML Code
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NextGen Dev Hub</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
<h2>NextGen Dev Hub</h2>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<section class="hero">
<h1>
Grow Your Business With Us
</h1>
<p>
Professional Web Design & Development Services
</p>
<button>
Get Started
</button>
</section>
<section class="about">
<h2>About Us</h2>
<p>
NextGen Dev Hub provides Web Development,
Programming, Robotics, IoT and Technical Training.
</p>
</section>
<section class="services">
<div class="card">
<h3>Web Design</h3>
<p>Modern Website Design</p>
</div>
<div class="card">
<h3>Web Development</h3>
<p>Responsive Websites</p>
</div>
<div class="card">
<h3>Training</h3>
<p>Programming Courses</p>
</div>
</section>
<section class="contact">
<h2>Contact Us</h2>
<p>Email: info@nextgendevhub.com</p>
<p>Phone: +91 9876543210</p>
</section>
<footer>
Β© 2026 NextGen Dev Hub
</footer>
</body>
</html>
π¨ Step 8 β Style Body
body{
margin:0;
font-family:Arial, sans-serif;
background:#f5f5f5;
}
π¨ Step 9 β Style Navigation
nav h2{
color:white;
}
nav ul{
display:flex;
gap:20px;
list-style:none;
}
nav a{
color:white;
text-decoration:none;
font-weight:bold;
}
nav a:hover{
color:yellow;
}
π¨ Step 10 β Style Hero Section
.hero{
text-align:center;
padding:100px 20px;
background:white;
}
.hero h1{
font-size:50px;
color:#0d6efd;
}
.hero p{
font-size:20px;
}
.hero button{
background:#0d6efd;
color:white;
padding:15px 30px;
border:none;
border-radius:8px;
font-size:18px;
cursor:pointer;
}
.hero button:hover{
background:#084298;
}
π¨ Step 11 β Style About Section
.about{
padding:50px 20px;
text-align:center;
background:#ffffff;
}
π¨ Step 12 β Style Services Section
.services{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
padding:50px;
}
.card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 0 10px lightgray;
text-align:center;
}
π¨ Step 13 β Style Contact Section
.contact{
padding:50px 20px;
text-align:center;
background:#ffffff;
}
π¨ Step 14 β Style Footer
footer{
background:#0d6efd;
color:white;
text-align:center;
padding:20px;
}
π― Step 15 β Make Website Responsive
@media (max-width:768px)
{
nav{
flex-direction:column;
}
nav ul{
flex-direction:column;
padding:0;
}
.hero h1{
font-size:30px;
}
.services{
grid-template-columns:1fr;
padding:20px;
}
}
π Complete CSS Code
body{
margin:0;
font-family:Arial, sans-serif;
background:#f5f5f5;
}
nav{
display:flex;
justify-content:space-between;
align-items:center;
background:#0d6efd;
padding:15px 30px;
}
nav h2{
color:white;
}
nav ul{
display:flex;
gap:20px;
list-style:none;
}
nav a{
color:white;
text-decoration:none;
font-weight:bold;
}
nav a:hover{
color:yellow;
}
.hero{
text-align:center;
padding:100px 20px;
background:white;
}
.hero h1{
font-size:50px;
color:#0d6efd;
}
.hero p{
font-size:20px;
}
.hero button{
background:#0d6efd;
color:white;
padding:15px 30px;
border:none;
border-radius:8px;
font-size:18px;
cursor:pointer;
}
.about{
padding:50px 20px;
text-align:center;
background:white;
}
.services{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
padding:50px;
}
.card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 0 10px lightgray;
text-align:center;
}
.contact{
padding:50px 20px;
text-align:center;
background:white;
}
footer{
background:#0d6efd;
color:white;
text-align:center;
padding:20px;
}
@media (max-width:768px)
{
nav{
flex-direction:column;
}
nav ul{
flex-direction:column;
padding:0;
}
.hero h1{
font-size:30px;
}
.services{
grid-template-columns:1fr;
padding:20px;
}
}
π― Expected Output
Desktop View
LOGO
HOME ABOUT SERVICES CONTACT
Grow Your Business With Us
[ Get Started ]
Web Design | Web Development | Training
Mobile View
LOGO
HOME
ABOUT
SERVICES
CONTACT
Grow Your Business With Us
[ Get Started ]
Web Design
Web Development
Training
π Final Mini Project Challenge
Modify this project and create:
Polytechnic College Business Website
Add:
β College Logo
β About College
β Courses Offered
β Faculty Section
β Contact Form
β College Gallery
π Practical Activity
Create a complete website for:
- Coaching Institute
- Polytechnic College
- Computer Training Center
- Robotics & IoT Academy
using all concepts learned in Module 5.
π Assignment
Assignment 5.7
- What is a Responsive Business Website?
- Why is Mobile First Design important?
- Why are Media Queries used?
- Why should Service Cards be responsive?
- Create a responsive business website.
- Add an About Section and Contact Section.
- Modify the project for your college.
π§ Quiz
Q1. Which layout is used for service cards?
A. Table
B. Grid
C. Float
D. Inline
β Answer: B
Q2. Which CSS feature helps make websites responsive?
A. Media Queries
B. Border
C. Color
D. Animation
β Answer: A
Q3. Which section introduces the company?
A. Footer
B. Contact
C. About
D. Navigation
β Answer: C
Q4. Which layout is commonly used for navigation?
A. Grid
B. Flexbox
C. Table
D. Inline
β Answer: B
Q5. A responsive business website should work on?
A. Mobile
B. Tablet
C. Desktop
D. All of These
β Answer: D
π Module 5 Summary
You have successfully learned:
β Lesson 5.1 β What is Responsive Design?
β Lesson 5.2 β Mobile First Design
β Lesson 5.3 β Media Queries
β Lesson 5.4 β Responsive Images
β Lesson 5.5 β Responsive Navigation Bar
β Lesson 5.6 β Building Mobile Friendly Pages
β Lesson 5.7 β Mini Project: Responsive Business Website