Challenge - 5 Problems
Filter Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What is the visual effect of this Tailwind class?
Look at this HTML snippet using Tailwind CSS:
What will you see in the browser?
<div class="blur-sm">Hello</div>
What will you see in the browser?
Tailwind
<div class="blur-sm">Hello</div>Attempts:
2 left
💡 Hint
The class 'blur-sm' applies a small blur filter to the element.
✗ Incorrect
The 'blur-sm' class in Tailwind applies a small blur effect, softening the edges of the text or element. It does not affect brightness or visibility.
📝 Syntax
intermediate2:00remaining
Which Tailwind class correctly applies a brightness filter of 150%?
You want to make an image brighter by 1.5 times using Tailwind CSS. Which class should you use?
Attempts:
2 left
💡 Hint
Tailwind has predefined brightness classes including brightness-150 for 150%.
✗ Incorrect
Tailwind provides the 'brightness-[150%]' class which applies brightness(1.5), equivalent to 150%. The class 'brightness-150' is not a default Tailwind class.
❓ selector
advanced2:00remaining
Which Tailwind class combination applies both blur and brightness filters correctly?
You want to blur an element slightly and increase its brightness to 120%. Which class combination is correct?
Attempts:
2 left
💡 Hint
Remember that brightness values above 100% require arbitrary values in Tailwind.
✗ Incorrect
The correct way is to use 'blur-sm' for small blur and 'brightness-[120%]' for 120% brightness. Other options either use invalid class names or syntax.
🧠 Conceptual
advanced2:00remaining
What happens if you apply 'brightness-0' in Tailwind CSS?
Consider an image with class 'brightness-0'. What will be the visual result in the browser?
Tailwind
<img src="example.jpg" class="brightness-0" alt="Example image">
Attempts:
2 left
💡 Hint
Brightness 0 means no light is visible.
✗ Incorrect
A brightness filter of 0 means the element is fully dark, so the image appears completely black.
❓ accessibility
expert3:00remaining
How can blur and brightness filters affect accessibility, and what is a good practice?
Using blur and brightness filters can impact how users perceive content. Which practice improves accessibility when using these filters?
Attempts:
2 left
💡 Hint
Think about users with vision difficulties and how filters might affect readability.
✗ Incorrect
Filters like blur and brightness can reduce clarity. To keep content accessible, maintain good contrast and provide text alternatives so all users can understand the content.