Complete the code to apply a red background using Tailwind CSS utility classes.
<div class="[1]">Hello World</div>
The Tailwind CSS class bg-red-500 applies a red background color. Other options are not valid Tailwind classes.
Complete the code to add padding of 4 units using Tailwind CSS.
<button class="[1]">Click me</button>
In Tailwind CSS, p-4 adds padding of 1rem (4 units) on all sides. Other options are not valid Tailwind classes.
Fix the error in the Tailwind CSS class to center text horizontally.
<p class="text-[1]">Centered text</p>
The correct Tailwind class to center text is text-center. Other options are invalid.
Fill both blanks to create a blue button with white text using Tailwind CSS.
<button class="[1] [2]">Submit</button>
bg-blue-600 sets a blue background and text-white sets white text color in Tailwind CSS.
Fill all three blanks to create a responsive card with padding, shadow, and rounded corners using Tailwind CSS.
<div class="[1] [2] [3]">Card content</div>
p-6 adds padding, shadow-lg adds a large shadow, and rounded-md adds medium rounded corners in Tailwind CSS.