Complete the code to apply a 50% opacity to the background color using Tailwind CSS.
<div class="bg-blue-500 [1]">Hello</div>
opacity-50 affects the whole element, not just background color.text-opacity-50 affects text color opacity, not background.In Tailwind CSS, bg-opacity-50 sets the background color opacity to 50%.
Complete the code to apply 25% opacity to the text color using Tailwind CSS.
<p class="text-red-600 [1]">Warning message</p>
opacity-25 changes the whole element's opacity.bg-opacity-25 affects background, not text.The class text-opacity-25 sets the text color opacity to 25% in Tailwind CSS.
Fix the error in the code to correctly apply 75% opacity to the background color.
<div class="bg-green-400 [1]">Success</div>
opacity-75 changes the whole element's opacity, not just background.text-opacity-75 affects text color opacity.bg-opacity-75 correctly sets the background color opacity to 75% in Tailwind CSS.
Fill both blanks to create a button with blue background at 40% opacity and white text at 90% opacity.
<button class="bg-blue-600 [1] text-white [2]">Click me</button>
opacity-40 affects the whole button, not just background.bg-opacity-40 sets background opacity to 40%, and text-opacity-90 sets text opacity to 90%.
Fill all three blanks to create a card with red background at 60% opacity, black text at 80% opacity, and overall element opacity at 90%.
<div class="bg-red-500 [1] text-black [2] [3]">Card content</div>
bg-opacity-90 instead of opacity-90 for overall opacity.bg-opacity-60 sets background opacity to 60%, text-opacity-80 sets text opacity to 80%, and opacity-90 sets the whole element's opacity to 90%.