Challenge - 5 Problems
Text Transform Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2: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>
Attempts:
2 left
💡 Hint
Think about what the class name suggests about letter casing.
✗ Incorrect
The Bootstrap class
text-lowercase converts all letters in the text to lowercase, so "HELLO WORLD" becomes "hello world" visually.❓ selector
intermediate1: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?
Attempts:
2 left
💡 Hint
Look for the class name that suggests making text uppercase.
✗ Incorrect
The class
text-uppercase transforms all letters to uppercase. text-capitalize capitalizes the first letter of each word, and text-lowercase makes all letters lowercase. text-bold is not a Bootstrap text transform class.🧠 Conceptual
advanced2:00remaining
What is the effect of the
text-capitalize class in Bootstrap?Consider the following HTML:
What will the text look like when rendered in a browser?
<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>
Attempts:
2 left
💡 Hint
Think about what 'capitalize' means for each word.
✗ Incorrect
The
text-capitalize class capitalizes the first letter of each word, so every word starts with a capital letter.❓ accessibility
advanced2: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?Attempts:
2 left
💡 Hint
Screen readers read the actual text content, not the visual style.
✗ Incorrect
Screen readers read the underlying text, which may be all uppercase or lowercase due to CSS. Adding an
aria-label with the original text ensures correct pronunciation and clarity.❓ layout
expert3: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?
Attempts:
2 left
💡 Hint
Bootstrap uses breakpoint prefixes like
md for medium screens.✗ Incorrect
The class
text-uppercase applies uppercase text by default (all screen sizes). The class text-md-lowercase applies lowercase text starting at medium screens and up, overriding the default uppercase on those sizes.