š Scenario: You are creating a simple webpage to explain why it is important to stay current with technology and trends. This page will use Bootstrap to make it look nice and be responsive on different devices.
šÆ Goal: Build a responsive webpage using Bootstrap that has a header, a main section with a list of reasons why staying current matters, and a footer. The page should have a container, a heading, and a styled list.
š What You'll Learn
Use Bootstrap 5 CSS from CDN
Create a container with a header, main content, and footer
Add a heading inside the header with the text 'Why Staying Current Matters'
Add an unordered list inside the main section with exactly three reasons
Use Bootstrap classes to style the list and make the page responsive
š” Why This Matters
š Real World
Creating simple, clean, and responsive informational webpages is common for blogs, company sites, and personal portfolios.
š¼ Career
Knowing how to use Bootstrap helps you quickly build professional-looking websites that work well on phones, tablets, and desktops.
Progress0 / 4 steps
1
Create the basic HTML structure with Bootstrap link
Create a basic HTML5 page with lang="en" in the <html> tag. Add the <head> section with charset="UTF-8" and viewport meta tags. Link the Bootstrap 5 CSS from the official CDN inside the <head>. Add an empty <body> tag.
Bootsrap
Hint
Remember to include the Bootstrap CSS link inside the <head> section.
2
Add a Bootstrap container with header, main, and footer sections
Inside the <body>, add a <div> with the Bootstrap class container. Inside this container, add a <header>, a <main>, and a <footer> element. Leave them empty for now.
Bootsrap
Hint
Use a div with class container and add the semantic sections inside it.
3
Add a heading and a list of reasons inside main
Inside the <header>, add an <h1> with the text Why Staying Current Matters. Inside the <main>, add an unordered list <ul> with the Bootstrap class list-group. Add exactly three list items <li> with the class list-group-item containing these reasons: Improves skills, Increases opportunities, and Builds confidence.
Bootsrap
Hint
Use Bootstrap's list-group classes on the ul and li elements for styling.