Challenge - 5 Problems
Text Transform Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate2:00remaining
Which Tailwind class makes text uppercase?
You want to transform text to uppercase using Tailwind CSS. Which class should you use?
Attempts:
2 left
💡 Hint
Tailwind uses short, simple class names for common CSS properties.
✗ Incorrect
The correct Tailwind class for uppercase text is 'uppercase'. Other options are invalid class names.
❓ rendering
intermediate2:00remaining
What will be the visual output of this HTML with Tailwind?
Given this HTML snippet:
What will the text look like in the browser?
<p class="lowercase">HELLO WORLD</p>
What will the text look like in the browser?
Tailwind
<p class="lowercase">HELLO WORLD</p>Attempts:
2 left
💡 Hint
The 'lowercase' class changes all letters to small letters.
✗ Incorrect
The 'lowercase' Tailwind class transforms all text to lowercase, so 'HELLO WORLD' becomes 'hello world'.
🧠 Conceptual
advanced2:00remaining
Which Tailwind class does NOT affect text case?
Select the Tailwind class that does NOT change the case of text.
Attempts:
2 left
💡 Hint
Think about what 'truncate' does to text.
✗ Incorrect
'truncate' cuts off overflowing text with an ellipsis but does not change letter case. The other classes change text case.
❓ selector
advanced2:00remaining
Which CSS selector targets all uppercase text in Tailwind?
You want to style all elements with uppercase text using Tailwind's generated CSS. Which selector matches the uppercase text class?
Attempts:
2 left
💡 Hint
Tailwind uses class selectors starting with a dot.
✗ Incorrect
Tailwind's uppercase class is '.uppercase'. '#uppercase' is an ID selector, 'uppercase' alone is invalid, and '.text-uppercase' is not a Tailwind class.
❓ accessibility
expert3:00remaining
How to ensure uppercase text remains accessible?
You use Tailwind's 'uppercase' class to transform text visually. What should you do to keep the text accessible for screen readers?
Attempts:
2 left
💡 Hint
Screen readers read the actual text content, not CSS transformations.
✗ Incorrect
CSS text-transform changes only visual appearance. Screen readers read the original text. Adding aria-label with original casing helps preserve meaning and clarity.