Text alignment utilities with Bootstrap
📖 Scenario: You are creating a simple webpage that shows three paragraphs of text. Each paragraph needs to have a different text alignment to demonstrate how Bootstrap's text alignment utilities work.
🎯 Goal: Build a webpage with three paragraphs. The first paragraph's text should be aligned to the left, the second paragraph's text should be centered, and the third paragraph's text should be aligned to the right using Bootstrap text alignment classes.
📋 What You'll Learn
Use Bootstrap 5 CSS via CDN in the
<head> sectionCreate three paragraphs inside the
<main> elementApply Bootstrap text alignment utility classes
text-start, text-center, and text-end to the paragraphs respectivelyUse semantic HTML5 structure with
<main> and <p> tagsEnsure the page is responsive and accessible
💡 Why This Matters
🌍 Real World
Text alignment is a common need in webpages to improve readability and design. Bootstrap's utility classes make it easy to align text without writing custom CSS.
💼 Career
Knowing how to use Bootstrap utilities for text alignment helps you quickly build professional and responsive layouts, a valuable skill for frontend web development jobs.
Progress0 / 4 steps