Complete the code to add a Tailwind class that makes the text bold.
<template> <div class="[1]">Hello, Vue with Tailwind!</div> </template>
The font-bold class makes the text bold in Tailwind CSS.
Complete the code to apply a responsive padding of 4 on small screens and 8 on medium screens.
<template> <div class="p-4 [1]">Responsive padding</div> </template>
sm: or lg:.The class md:p-8 applies padding 8 on medium screens and above, combined with p-4 for smaller screens.
Fix the error in the Tailwind class that should center text horizontally.
<template> <p class="[1]">Centered text</p> </template>
The correct Tailwind class to center text is text-center. Other options are invalid.
Fill both blanks to create a flex container that centers items vertically and horizontally.
<template> <div class="flex [1] [2]"> Centered content </div> </template>
items-start or justify-start which align to the start, not center.Use items-center to center items vertically and justify-center to center horizontally in a flex container.
Fill all three blanks to create a Vue component with a button styled with Tailwind that changes color on hover.
<template> <button class="bg-blue-500 [1] text-white [2] rounded [3]"> Click me </button> </template>
The button uses hover:bg-blue-700 to change background on hover, px-4 for horizontal padding, and py-2 for vertical padding.