This is a simple landing page with a header, features section, call-to-action, and footer using Bootstrap classes for layout and style.
Bootsrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Simple Landing Page</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<header class="bg-dark text-white text-center py-5">
<h1>Welcome to Our Website</h1>
<p>Your success starts here.</p>
</header>
<section class="py-5">
<div class="container">
<h2 class="mb-4">Features</h2>
<div class="row">
<div class="col-md-4">
<h3>Easy to Use</h3>
<p>Our product is simple and intuitive.</p>
</div>
<div class="col-md-4">
<h3>Reliable</h3>
<p>We ensure 99.9% uptime for your peace of mind.</p>
</div>
<div class="col-md-4">
<h3>Support</h3>
<p>24/7 customer support ready to help you.</p>
</div>
</div>
</div>
</section>
<section class="py-5 bg-primary text-white text-center">
<div class="container">
<h2>Get Started Today</h2>
<p>Join thousands of happy customers.</p>
<button class="btn btn-light btn-lg mt-3">Sign Up Now</button>
</div>
</section>
<footer class="bg-dark text-white text-center py-3">
<p>Contact us: info@example.com</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
OutputSuccess
Important Notes
Use container classes to keep content centered and nicely spaced.
Use padding classes like py-5 to add vertical space in sections.
Choose background and text colors for good contrast and readability.
Summary
Landing page sections organize content clearly for visitors.
Use semantic <section> tags with Bootstrap classes for easy styling.
Common sections include header, features, call-to-action, and footer.
Practice
(1/5)
1. Which HTML tag is best to use for defining distinct sections in a Bootstrap landing page?
easy
A. <div>
B. <section>
C. <span>
D. <article>
Solution
Step 1: Understand semantic sectioning tags
The <section> tag is designed to group related content into distinct parts of a page, making it ideal for landing page sections.
Step 2: Compare with other tags
While
is a generic container, it lacks semantic meaning. <span> is inline and not for sections. <article> is for self-contained content, not general sections.
Final Answer:
<section> -> Option B
Quick Check:
Semantic sections = <section> [OK]
Hint: Use <section> for clear, semantic page parts [OK]
Common Mistakes:
Using <div> without semantic meaning
Confusing <article> with <section>
Using inline tags like <span> for layout
2. Which Bootstrap class would you use to create a responsive container for a landing page section?
easy
A. container-fluid
B. col
C. row
D. container
Solution
Step 1: Understand Bootstrap container classes
The container class creates a responsive fixed-width container that adapts to screen sizes, perfect for landing page sections.
Step 2: Differentiate from other classes
container-fluid spans full width always, row and col are for grid layout inside containers.
Final Answer:
container -> Option D
Quick Check:
Responsive fixed container = container [OK]
Hint: Use 'container' for fixed responsive width [OK]
Common Mistakes:
Using container-fluid when fixed width is needed
Confusing row or col as containers
Not wrapping content in a container
3. What will be the visual result of this Bootstrap landing page section code?
5. You want a landing page call-to-action section with a full-width background color, centered text, and a button that scales on small screens. Which Bootstrap structure is best?