0
0
Bootsrapmarkup~30 mins

Why Bootstrap exists - See It in Action

Choose your learning style9 modes available
Understanding Why Bootstrap Exists
šŸ“– Scenario: You are building a simple webpage to explain why Bootstrap is used in web development. This page will show a short list of reasons why Bootstrap exists and how it helps developers.
šŸŽÆ Goal: Create a clean, responsive webpage that lists the main reasons why Bootstrap exists, using semantic HTML and basic Bootstrap classes for styling.
šŸ“‹ What You'll Learn
Use semantic HTML5 elements like <main> and <section>
Include a Bootstrap CSS link in the <head>
Create a list of reasons why Bootstrap exists inside a <section>
Use Bootstrap classes to style the list and make it responsive
Ensure the page has a header with a title
šŸ’” Why This Matters
šŸŒ Real World
Bootstrap is widely used to quickly build responsive and visually consistent websites without writing all CSS from scratch.
šŸ’¼ Career
Knowing why Bootstrap exists helps you understand how to speed up web development and maintain design consistency, skills valuable for front-end developer roles.
Progress0 / 4 steps
1
Set up the basic HTML structure with Bootstrap CSS
Create a basic HTML5 page with lang="en" in the <html> tag. Add a <head> section with <meta charset="UTF-8">, a viewport meta tag for responsiveness, a <title> "Why Bootstrap Exists", and link the Bootstrap 5 CSS from the official CDN: https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css. Then add an empty <body> section.
Bootsrap
Need a hint?

Remember to add the Bootstrap CSS link inside the <head> section using the <link> tag.

2
Add a header with a page title
Inside the <body>, add a <header> element with a Bootstrap class bg-primary and text-white for background and text color. Inside the header, add a <div> with class container and an <h1> with the text "Why Bootstrap Exists".
Bootsrap
Need a hint?

Use Bootstrap classes bg-primary and text-white on the <header> to style the background and text color.

3
Add a main section with a list of reasons
Below the header, add a <main> element with a container class. Inside it, add a <section> with a heading <h2> "Reasons Bootstrap Exists". Then add an unordered list <ul> with Bootstrap class list-group. Add three list items <li> with class list-group-item containing these exact texts: "Makes responsive design easy", "Provides ready-to-use components", "Ensures consistent styling across browsers".
Bootsrap
Need a hint?

Use Bootstrap's list-group and list-group-item classes to style the list nicely.

4
Add a footer with a small copyright note
At the bottom of the <body>, add a <footer> with Bootstrap classes bg-light and text-center. Inside it, add a <div> with class container py-3 containing a <small> element with the text "Ā© 2024 Bootstrap Learning".
Bootsrap
Need a hint?

Use Bootstrap classes bg-light and text-center on the <footer> for a light background and centered text.