🧩 Introduction
If you’re just starting with web development, building a responsive landing page is one of the best beginner projects you can do.
In this tutorial, you’ll learn how to create a clean, mobile-friendly landing page using only HTML and CSS. No frameworks, no libraries, no shortcuts. Just real skills you’ll actually use in future projects.
By the end, you’ll have a solid layout that works on desktop, tablet, and mobile screens.
🛠️ What You’ll Build
This landing page includes:
- A hero section with heading and CTA button
- A features section using CSS Flexbox
- A responsive layout that adapts to screen size
- Clean and readable structure
- Beginner-friendly code
📁 Project Structure
landing-page/
│
├── index.html
└── style.css
🧱 Step 1: HTML Structure
Create a file named index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Landing Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="hero">
<h1>Build Better Websites</h1>
<p>Simple, fast, and responsive design using HTML & CSS</p>
<a href="#features" class="btn">Get Started</a>
</header>
<section id="features" class="features">
<div class="feature">
<h3>Clean Code</h3>
<p>Easy to read and beginner-friendly structure.</p>
</div>
<div class="feature">
<h3>Responsive</h3>
<p>Works perfectly on mobile and desktop devices.</p>
</div>
<div class="feature">
<h3>Modern Layout</h3>
<p>Uses Flexbox for flexible layouts.</p>
</div>
</section>
<footer class="footer">
<p>© 2026 Your Website. All rights reserved.</p>
</footer>
</body>
</html>
🎨 Step 2: CSS Styling
Create a file named style.css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
line-height: 1.6;
color: #0f172a;
}
.hero {
background: #2563eb;
color: #ffffff;
text-align: center;
padding: 80px 20px;
}
.hero h1 {
font-size: 36px;
margin-bottom: 10px;
}
.hero p {
font-size: 18px;
margin-bottom: 20px;
}
.btn {
display: inline-block;
background: #ffffff;
color: #2563eb;
padding: 12px 24px;
border-radius: 6px;
text-decoration: none;
font-weight: 600;
}
.features {
display: flex;
gap: 20px;
padding: 60px 20px;
max-width: 1100px;
margin: auto;
}
.feature {
flex: 1;
background: #f1f5f9;
padding: 25px;
border-radius: 10px;
text-align: center;
}
.footer {
text-align: center;
padding: 20px;
background: #0f172a;
color: #ffffff;
}
📱 Step 3: Make It Responsive
Add this at the bottom of style.css
@media (max-width: 768px) {
.features {
flex-direction: column;
}
.hero h1 {
font-size: 28px;
}
}
✅ What You Learned
- How to structure a landing page with HTML
- How to style layouts using CSS Flexbox
- How to make designs responsive without frameworks
- How real-world landing pages are built
🚀 Next Steps
Once you’re comfortable with this project, try:
- Adding a navigation bar
- Creating multiple pages
- Adding animations using CSS
- Turning this into a WordPress theme later
🔗 Related Beginner Projects
- Build a Personal Portfolio Website
- Create a Simple Blog Layout Using HTML & CSS
- Design a Contact Form (HTML + CSS)
🏁 Final Thoughts
This project gives you a strong foundation in layout and responsive design. Keep practicing small projects like this, and your confidence will grow fast.
If you want more beginner-friendly tutorials, tools, and real-world web development tips, keep following EncodeByte.
