Complete the code to create a simple heading with Tailwind styling.
<h1 class="text-[1] font-bold">Hello World</h1>
The class text-xl sets the font size to extra large, making the heading stand out nicely.
Complete the code to add padding around the heading using Tailwind.
<h1 class="text-xl font-bold [1]">Hello World</h1>
The class p-4 adds padding on all sides of the element, creating space inside the border.
Fix the error in the Tailwind class to center the text horizontally.
<h1 class="text-xl font-bold [1] p-4">Hello World</h1>
The class text-center centers the text horizontally inside the element.
Fill both blanks to create a blue background and white text color.
<h1 class="text-xl font-bold [1] [2] p-4 text-center">Hello World</h1>
bg-blue-500 sets a medium blue background color, and text-white makes the text white for good contrast.
Fill all three blanks to create a responsive container with padding and centered text.
<div class="[1] mx-auto [2] [3]">Hello World</div>
max-w-md limits the container width for better readability, p-6 adds padding inside, and text-center centers the text horizontally.