Complete the code to change the background color on hover using Tailwind CSS.
<button class="bg-blue-500 [1]:bg-blue-700 text-white font-bold py-2 px-4 rounded">Hover me</button>
The hover variant applies styles when the mouse pointer is over the element.
Complete the code to change the text color on hover using Tailwind CSS.
<p class="text-gray-700 [1]:text-red-500">Hover over this text</p>
The hover variant changes the text color when the mouse is over the text.
Fix the error in the code to apply a hover effect that changes the border color.
<div class="border-2 border-gray-300 [1]border-blue-500 p-4">Hover me</div>
The correct syntax for hover variant in Tailwind is hover: with a colon.
Fill both blanks to create a button that changes background and text color on hover.
<button class="bg-green-400 [1]:bg-green-600 text-white [2]:text-yellow-300 font-semibold py-2 px-6 rounded">Hover me</button>
Both background and text color change on hover, so both blanks use the hover variant.
Fill all three blanks to create a link that changes color, underline, and font weight on hover.
<a href="#" class="text-blue-600 [1]:text-blue-800 [2]:underline [3]:font-bold">Hover over me</a>
All three styles apply on hover, so all blanks use the hover variant.