0
0
Bootsrapmarkup~20 mins

Text transform utilities in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Text Transform Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2:00remaining
What text style will this Bootstrap class apply?
Given the following HTML snippet using Bootstrap, what will be the visual style of the text inside the <p> tag when rendered in a browser?

<p class="text-lowercase">HELLO WORLD</p>
Bootsrap
<p class="text-lowercase">HELLO WORLD</p>
AThe text will appear as "hello world" in all lowercase letters.
BThe text will appear as "HELLO WORLD" in all uppercase letters.
CThe text will appear as "Hello World" with the first letter of each word capitalized.
DThe text will appear unchanged as "HELLO WORLD".
Attempts:
2 left
💡 Hint
Think about what the class name suggests about letter casing.
selector
intermediate
1:30remaining
Which Bootstrap class applies uppercase text transformation?
You want to make a heading's text appear in all uppercase letters using Bootstrap classes. Which class should you add to the element?
Atext-uppercase
Btext-capitalize
Ctext-lowercase
Dtext-bold
Attempts:
2 left
💡 Hint
Look for the class name that suggests making text uppercase.
🧠 Conceptual
advanced
2:00remaining
What is the effect of the text-capitalize class in Bootstrap?
Consider the following HTML:

<p class="text-capitalize">welcome to the world of bootstrap</p>

What will the text look like when rendered in a browser?
Bootsrap
<p class="text-capitalize">welcome to the world of bootstrap</p>
A"Welcome to the world of bootstrap" only the first letter of the first word capitalized.
B"WELCOME TO THE WORLD OF BOOTSTRAP" all uppercase letters.
C"welcome to the world of bootstrap" all lowercase letters.
D"Welcome To The World Of Bootstrap" with the first letter of each word capitalized.
Attempts:
2 left
💡 Hint
Think about what 'capitalize' means for each word.
accessibility
advanced
2:30remaining
How to ensure text transform utilities do not confuse screen readers?
When using Bootstrap text transform classes like text-uppercase or text-lowercase, what should you do to keep the text accessible for screen readers?
AAvoid using text transform classes altogether.
BAdd <code>aria-label</code> with the original text in correct casing.
CUse <code>text-transform</code> CSS only on decorative text, not important content.
DNo special action is needed; screen readers read transformed text correctly.
Attempts:
2 left
💡 Hint
Screen readers read the actual text content, not the visual style.
layout
expert
3:00remaining
How does Bootstrap's text transform utility interact with responsive design?
You want text to be uppercase on small screens but lowercase on medium and larger screens using Bootstrap classes. Which combination of classes achieves this?
AUse <code>text-uppercase text-lg-lowercase</code>
BUse <code>text-lowercase text-md-uppercase</code>
CUse <code>text-uppercase text-md-lowercase</code>
DUse <code>text-lowercase text-sm-uppercase</code>
Attempts:
2 left
💡 Hint
Bootstrap uses breakpoint prefixes like md for medium screens.