Complete the code to apply a blue border when the input is focused.
<input type="text" class="border [1]" aria-label="Name input">
The focus: variant applies styles when the element is focused, such as when clicked or tabbed into.
Complete the code to change the background color to yellow when a button is focused.
<button class="p-2 [1] bg-gray-200" aria-label="Submit button">Submit</button>
The focus:bg-yellow-300 class changes the background color when the button is focused, helping keyboard users see the active element.
Fix the error in the code to apply a red text color on focus for the link.
<a href="#" class="text-blue-600 [1]">Link</a>
The focus:text-red-600 class applies red text color only when the link is focused, improving accessibility.
Fill both blanks to style the input with a green border and shadow on focus.
<input type="text" class="border border-gray-300 [1] [2] rounded" aria-label="Email input">
focus:border-green-500 changes the border color on focus, and focus:shadow-lg adds a shadow on focus for better visibility.
Fill all three blanks to style the button with a blue background, white text, and shadow on focus.
<button class="px-4 py-2 rounded [1] [2] [3]" aria-label="Save button">Save</button>
The classes focus:bg-blue-600, focus:text-white, and focus:shadow-md style the button's background, text color, and shadow when focused, improving keyboard navigation visibility.