š Scenario: You are building a simple webpage for a local community newsletter. You want to highlight the introduction paragraph so it stands out to readers.
šÆ Goal: Build a webpage using Bootstrap that includes a lead paragraph to emphasize the introduction text.
š What You'll Learn
Use Bootstrap 5 classes
Create a paragraph with the class lead
Include a container for proper spacing
Add a heading above the lead paragraph
Ensure the page uses semantic HTML5 elements
š” Why This Matters
š Real World
Lead paragraphs are often used on websites to draw attention to important introductory text, such as news articles, blog posts, or announcements.
š¼ Career
Knowing how to use Bootstrap's typography classes like 'lead' helps you quickly create visually appealing and readable web pages, a common task in front-end web development jobs.
Progress0 / 4 steps
1
Set up the basic HTML structure with Bootstrap
Create a basic HTML5 page with lang="en", charset="UTF-8", and a viewport meta tag. Include the Bootstrap 5 CSS CDN link inside the <head>. Add a <body> with a <main> element containing a <div> with the class container.
Bootsrap
Hint
Remember to include the Bootstrap CSS link inside the <head> and use semantic tags like <main> and <div class="container">.
2
Add a heading for the newsletter
Inside the <div class="container">, add a heading level 1 with the text Community Newsletter.
Bootsrap
Hint
Use the <h1> tag inside the container to add the heading.
3
Add a lead paragraph to highlight the introduction
Below the heading, add a paragraph with the class lead. The paragraph text should be: Welcome to our monthly community newsletter. Stay updated with local events and news.
Bootsrap
Hint
Use a <p> tag with the class lead to make the paragraph stand out.