Lesson 4.9 β Mini Project: Landing Page Layout
π Building a Professional Business Landing Page Using HTML & CSS
π― Learning Objectives
After completing this lesson, students will be able to:
β Create a Complete Landing Page
β Use Flexbox Layout
β Use CSS Grid Layout
β Create Navigation Menus
β Create Hero Sections
β Design Professional Webpages
β Combine All CSS Concepts Learned So Far
β Build Real-World Website Layouts
π Introduction
Congratulations! π
You have completed:
β CSS Box Model
β Margin & Padding
β Width & Height
β Display Properties
β Positioning
β Flexbox Basics
β Flexbox Advanced Layout
β CSS Grid
Now it’s time to create a complete project.
π What is a Landing Page?
A Landing Page is the first page visitors see when they open a website.
Examples:
β Business Websites
β Startup Websites
β Course Websites
β Product Websites
β Portfolio Websites
π― Landing Page Structure
Our Landing Page will contain:
---------------------------------
LOGO
HOME | ABOUT | SERVICES | CONTACT
---------------------------------
Hero Section
Welcome Message
Button
---------------------------------
Services Section
Service 1
Service 2
Service 3
---------------------------------
Footer
---------------------------------
ποΈ Project Planning
We will create:
Section 1
Navigation Bar
Section 2
Hero Section
Section 3
Services Section
Section 4
Footer
π» Step 1 β Create Project Files
Create:
index.html
style.css
π― Step 2 β HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>Landing Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>
</html>
π― Step 3 β Create Navigation Bar
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>
Output
NextGen Dev Hub
Home About Services Contact
π― Step 4 β Create Hero Section
Below navigation:
<section class="hero">
<h1>
Learn Web Designing
</h1>
<p>
Build Professional Websites with HTML, CSS and JavaScript
</p>
<button>
Join Now
</button>
</section>
π― Step 5 β Create Services Section
<section class="services">
<div class="card">
<h2>HTML</h2>
<p>Website Structure</p>
</div>
<div class="card">
<h2>CSS</h2>
<p>Website Design</p>
</div>
<div class="card">
<h2>JavaScript</h2>
<p>Website Interaction</p>
</div>
</section>
π― Step 6 β Create Footer
<footer>
Β© 2026 NextGen Dev Hub
</footer>
π Complete HTML Code
index.html
<!DOCTYPE html>
<html>
<head>
<title>Landing Page Project</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>
Learn Web Designing
</h1>
<p>
Build Professional Websites with HTML, CSS and JavaScript
</p>
<button>
Join Now
</button>
</section>
<section class="services">
<div class="card">
<h2>HTML</h2>
<p>Website Structure</p>
</div>
<div class="card">
<h2>CSS</h2>
<p>Website Design</p>
</div>
<div class="card">
<h2>JavaScript</h2>
<p>Website Interaction</p>
</div>
</section>
<footer>
Β© 2026 NextGen Dev Hub
</footer>
</body>
</html>
π¨ Step 7 β Style Body
body{
margin:0;
font-family:Arial;
background-color:#f5f5f5;
}
π¨ Step 8 β Style Navigation
nav{
display:flex;
justify-content:space-between;
align-items:center;
background-color:#0d6efd;
padding:15px 40px;
}
Style Navigation Heading
nav h2{
color:white;
}
Style Menu
nav ul{
display:flex;
list-style:none;
gap:20px;
}
Style Links
nav a{
text-decoration:none;
color:white;
font-weight:bold;
}
Hover Effect
nav a:hover{
color:yellow;
}
π¨ Step 9 β Style Hero Section
.hero{
text-align:center;
padding:100px 20px;
background-color:white;
}
Hero Heading
.hero h1{
font-size:45px;
color:#0d6efd;
}
Hero Paragraph
.hero p{
font-size:20px;
}
Hero Button
.hero button{
background-color:#0d6efd;
color:white;
padding:12px 25px;
border:none;
border-radius:10px;
font-size:18px;
cursor:pointer;
}
Button Hover
.hero button:hover{
background-color:#084298;
}
π¨ Step 10 β Style Services Section
.services{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
padding:50px;
}
Style Cards
.card{
background-color:white;
padding:30px;
border-radius:15px;
box-shadow:5px 5px 15px lightgray;
text-align:center;
}
π¨ Step 11 β Style Footer
footer{
background-color:#0d6efd;
color:white;
text-align:center;
padding:20px;
}
π Complete CSS Code
style.css
body{
margin:0;
font-family:Arial;
background-color:#f5f5f5;
}
nav{
display:flex;
justify-content:space-between;
align-items:center;
background-color:#0d6efd;
padding:15px 40px;
}
nav h2{
color:white;
}
nav ul{
display:flex;
list-style:none;
gap:20px;
}
nav a{
text-decoration:none;
color:white;
font-weight:bold;
}
nav a:hover{
color:yellow;
}
.hero{
text-align:center;
padding:100px 20px;
background-color:white;
}
.hero h1{
font-size:45px;
color:#0d6efd;
}
.hero p{
font-size:20px;
}
.hero button{
background-color:#0d6efd;
color:white;
padding:12px 25px;
border:none;
border-radius:10px;
font-size:18px;
cursor:pointer;
}
.hero button:hover{
background-color:#084298;
}
.services{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:20px;
padding:50px;
}
.card{
background-color:white;
padding:30px;
border-radius:15px;
box-shadow:5px 5px 15px lightgray;
text-align:center;
}
footer{
background-color:#0d6efd;
color:white;
text-align:center;
padding:20px;
}
π― Expected Output
Website contains:
β Navigation Bar
β Hero Section
β Join Now Button
β Three Service Cards
β Footer
β Modern Professional Design
π« Real World Features Used
Navigation
display:flex;
Hero Section
text-align:center;
Services
display:grid;
Cards
box-shadow
border-radius
Button
hover effects
π Enhancement Ideas
Students can add:
β Background Images
β Icons
β Contact Form
β About Section
β Testimonials
β Gallery
β οΈ Common Beginner Mistakes
Mistake 1
Not Linking CSS File
Wrong:
No stylesheet link
Mistake 2
Forgetting Flexbox
Navigation may break.
Mistake 3
No Grid Layout
Service cards appear vertically.
π Final Project Challenge
Modify this project and create:
College Landing Page
Include:
β College Name
β About College
β Courses
β Faculty
β Contact Details
π Practical Activity
Create your own:
Polytechnic College Website Homepage
using everything learned in Module 4.
π Assignment
Assignment 4.9
- What is a Landing Page?
- Why is Flexbox used in Navigation?
- Why is Grid used in Services Section?
- Which property creates card shadows?
- Which property creates rounded corners?
- Create a landing page for a college.
- Add your own services section.
π§ Quiz
Q1. Which layout is used for Navigation?
A. Grid
B. Flexbox
C. Table
D. Position
β Answer: B
Q2. Which layout is used for Service Cards?
A. Grid
B. Float
C. Position
D. Table
β Answer: A
Q3. Which property creates shadows?
A. shadow
B. border-shadow
C. box-shadow
D. text-shadow
β Answer: C
Q4. Which property creates rounded corners?
A. round
B. border-radius
C. radius
D. curve
β Answer: B
Q5. Which property creates spacing between grid columns?
A. margin
B. border
C. gap
D. width
β Answer: C
π Module 4 Summary β CSS Layout & Design
You have successfully learned:
β Lesson 4.1 β CSS Box Model
β Lesson 4.2 β Margin & Padding
β Lesson 4.3 β Width & Height
β Lesson 4.4 β Display Properties
β Lesson 4.5 β Positioning Elements
β Lesson 4.6 β Flexbox Basics
β Lesson 4.7 β Flexbox Advanced Layout
β Lesson 4.8 β CSS Grid Introduction
β Lesson 4.9 β Mini Project: Landing Page Layout