Challenge - 5 Problems
Text Decoration Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate2:00remaining
What is the effect of this Tailwind class?
Consider the following HTML snippet:
What will the text look like in the browser?
<p class="underline decoration-red-500">Hello World</p>
What will the text look like in the browser?
Tailwind
<p class="underline decoration-red-500">Hello World</p>Attempts:
2 left
💡 Hint
The 'underline' class adds an underline, and 'decoration-red-500' changes the underline color.
✗ Incorrect
The 'underline' class adds an underline to the text. The 'decoration-red-500' class changes the underline color to a shade of red. So the text will have a red underline.
🧠 Conceptual
intermediate1:30remaining
Which Tailwind class removes underline from a link?
You have a link styled with an underline by default. Which Tailwind class will remove the underline?
Tailwind
<a href="#" class="?">Click me</a>
Attempts:
2 left
💡 Hint
Tailwind uses 'no-underline' to remove underlines.
✗ Incorrect
The 'no-underline' class removes the underline decoration from text, commonly used on links.
❓ rendering
advanced2:00remaining
What is the visual difference between these two classes?
Look at these two Tailwind classes:
What difference will you see in the underline style?
underline decoration-dottedand
underline decoration-double
What difference will you see in the underline style?
Attempts:
2 left
💡 Hint
The 'decoration-' prefix controls the underline style.
✗ Incorrect
The 'decoration-dotted' class makes the underline dotted. The 'decoration-double' class makes the underline appear as two parallel lines.
❓ selector
advanced2:30remaining
Which Tailwind class combination creates a thick, wavy underline?
You want to style text with an underline that is thick and wavy. Which combination of Tailwind classes achieves this?
Attempts:
2 left
💡 Hint
'decoration-wavy' sets the underline style, 'decoration-4' sets thickness.
✗ Incorrect
'underline' adds underline, 'decoration-wavy' makes it wavy, and 'decoration-4' sets a thicker underline line.
❓ accessibility
expert3:00remaining
How to ensure underlined text is accessible for colorblind users?
You use Tailwind to underline important text with a colored underline. What is the best practice to ensure accessibility for colorblind users?
Attempts:
2 left
💡 Hint
Accessibility means not relying on color alone to convey information.
✗ Incorrect
Colorblind users may not distinguish colors well. Combining underline with strong contrast and another style like bold or italics helps everyone understand the emphasis.