Complete the code to include Tailwind CSS in your HTML file.
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/dist/tailwind.min.css" rel="[1]">
The rel attribute should be set to stylesheet to properly link the Tailwind CSS file.
Complete the Tailwind config to enable purging unused CSS from the 'src' folder.
module.exports = {
content: ["./[1]/**/*.{html,js}"],
theme: {
extend: {},
},
plugins: [],
}The content array tells Tailwind where to look for class names to keep. Usually, source files are in the src folder.
Complete the Tailwind CLI command to watch for file changes and rebuild CSS automatically.
npx tailwindcss -i ./input.css -o ./output.css --[1]The --watch flag tells Tailwind to watch files and rebuild CSS automatically, which helps during development.
Fill both blanks to create a Tailwind CSS class that applies margin and padding.
<div class="m-[1] p-[2] bg-blue-500 text-white">Content</div>
The class m-2 applies margin of 0.5rem and p-4 applies padding of 1rem. These are common spacing values in Tailwind.
Fill all three blanks to create a Tailwind CSS utility that sets font size, font weight, and text color.
<p class="text-[1] font-[2] text-[3]">Hello World</p>
The class text-lg sets a larger font size, font-bold makes text bold, and text-gray-700 applies a medium dark gray color.