Challenge: Create Forms
Task
Use Tailwind CSS to complete the styling of a form with inputs, textareas, radio buttons, and a switch.
Fill in the blanks with the appropriate Tailwind CSS classes to achieve the desired styling.
- Inputs and Textareas:
- Light gray border (
border-gray-300); - Medium rounded corners (
rounded-md); - Focus state with a blue ring (
focus:ring-2andfocus:ring-blue-500).
- Light gray border (
- Submit Button:
- Primary blue background (
bg-blue-500); - Darker blue on hover (
hover:bg-blue-700); - Rounded corners (
rounded); - Focus state with a ring (
focus:outline-none,focus:ring-2, andfocus:ring-blue-500).
- Primary blue background (
index.html
- Border Color: Use
border-gray-300for a light gray border; - Rounded Corners: Use
rounded-mdfor medium rounded corners; - Focus Ring: Use
focus:ring-2for adding a ring on focus andfocus:ring-blue-500for blue color. - Submit Button Hover: Use
hover:bg-blue-700for a darker blue on hover; - Submit Button Ring: Use
focus:outline-noneto remove default focus outline,focus:ring-2to add a ring on focus, andfocus:ring-blue-500to set the ring color.
index.html
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 6
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 3.57
Challenge: Create Forms
Swipe to show menu
Task
Use Tailwind CSS to complete the styling of a form with inputs, textareas, radio buttons, and a switch.
Fill in the blanks with the appropriate Tailwind CSS classes to achieve the desired styling.
- Inputs and Textareas:
- Light gray border (
border-gray-300); - Medium rounded corners (
rounded-md); - Focus state with a blue ring (
focus:ring-2andfocus:ring-blue-500).
- Light gray border (
- Submit Button:
- Primary blue background (
bg-blue-500); - Darker blue on hover (
hover:bg-blue-700); - Rounded corners (
rounded); - Focus state with a ring (
focus:outline-none,focus:ring-2, andfocus:ring-blue-500).
- Primary blue background (
index.html
- Border Color: Use
border-gray-300for a light gray border; - Rounded Corners: Use
rounded-mdfor medium rounded corners; - Focus Ring: Use
focus:ring-2for adding a ring on focus andfocus:ring-blue-500for blue color. - Submit Button Hover: Use
hover:bg-blue-700for a darker blue on hover; - Submit Button Ring: Use
focus:outline-noneto remove default focus outline,focus:ring-2to add a ring on focus, andfocus:ring-blue-500to set the ring color.
index.html
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 6