0
0
Bootsrapmarkup~20 mins

Text alignment utilities in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Text Alignment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What does the class text-center do in Bootstrap?
In Bootstrap, what is the visual effect of applying the class text-center to a paragraph?
AIt aligns the text to the right side of the container.
BIt aligns the text to the left side of the container.
CIt justifies the text so that both edges align with the container edges.
DIt aligns the text to the center horizontally within its container.
Attempts:
2 left
💡 Hint
Think about how text alignment works in CSS and what 'center' means.
📝 Syntax
intermediate
1:30remaining
Which Bootstrap class aligns text to the right?
You want to align a heading's text to the right side using Bootstrap classes. Which class should you use?
Atext-end
Btext-right
Ctext-justify
Dtext-left
Attempts:
2 left
💡 Hint
Bootstrap 5 uses logical properties for alignment.
rendering
advanced
2:00remaining
What is the visual output of this HTML snippet with Bootstrap classes?
Given the following HTML code, what will be the horizontal alignment of the text inside the <div> when viewed in a browser?

<div class="text-sm-start text-md-center text-lg-end">Responsive Text</div>
AText is left-aligned on small screens, centered on medium screens, and right-aligned on large screens.
BText is always centered regardless of screen size.
CText is right-aligned on small screens, left-aligned on medium screens, and centered on large screens.
DText is left-aligned on all screen sizes.
Attempts:
2 left
💡 Hint
Bootstrap uses responsive classes that apply at different screen widths.
selector
advanced
1:30remaining
Which CSS property does Bootstrap's text-justify class apply?
Bootstrap has a class called text-justify. Which CSS property and value does it apply to the element?
Atext-align: center;
Btext-align: justify;
Ctext-align: right;
Dtext-align: start;
Attempts:
2 left
💡 Hint
Justify means text edges align on both left and right sides.
accessibility
expert
2:00remaining
How does text alignment affect accessibility and readability?
Which statement best explains the accessibility impact of using text-center for large blocks of text in Bootstrap?
AText alignment has no impact on accessibility or readability.
BCenter alignment improves readability for all users by creating balanced text edges.
CCenter-aligned large text blocks can reduce readability for users with dyslexia or cognitive disabilities.
DCenter alignment is recommended for all paragraphs to enhance screen reader performance.
Attempts:
2 left
💡 Hint
Think about how eyes track lines of text and how alignment affects that.