Complete the code to apply a red background when the button is active.
<button class="bg-blue-500 [1]:bg-red-500 text-white px-4 py-2 rounded">Click me</button>
The active variant applies styles when the button is being clicked or pressed.
Complete the code to make the text bold only when the link is active (clicked).
<a href="#" class="text-gray-700 [1]:font-bold">Link</a>
The active variant applies styles while the link is being clicked.
Fix the error in the code to apply a green border when the input is active (clicked or focused).
<input type="text" class="border-2 border-gray-300 [1]:border-green-500" />
The focus variant applies styles when the input is focused (clicked or tabbed into). The active variant does not apply to inputs in the same way.
Fill both blanks to apply a blue background on hover and a red background when active.
<button class="[1]:bg-blue-500 [2]:bg-red-500 text-white px-4 py-2 rounded">Press me</button>
hover applies styles when the mouse is over the button, and active applies styles when the button is pressed.
Fill all three blanks to apply uppercase text on hover, bold text when active, and underline on focus.
<a href="#" class="[1]:uppercase [2]:font-bold [3]:underline">Link</a>
hover applies uppercase on mouse over, active applies bold while clicking, and focus applies underline when the link is focused.