0
0
Tailwindmarkup~5 mins

First Tailwind component (Hello World) - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Tailwind CSS?
Tailwind CSS is a utility-first CSS framework that helps you style your web pages by applying small, reusable classes directly in your HTML.
Click to reveal answer
beginner
How do you create a simple 'Hello World' component using Tailwind CSS?
You write an HTML element like <div>Hello World</div> and add Tailwind classes for styling, for example: <div class="text-center text-blue-600 text-2xl p-4">Hello World</div>.
Click to reveal answer
beginner
What does the Tailwind class 'text-center' do?
The 'text-center' class centers the text horizontally inside its container.
Click to reveal answer
intermediate
Why is it important to include the viewport meta tag in your HTML when using Tailwind?
The viewport meta tag ensures your page scales correctly on different devices, making Tailwind's responsive classes work as expected.
Click to reveal answer
intermediate
How can you make your Tailwind 'Hello World' component accessible?
Use semantic HTML elements like <main> or <section>, ensure good color contrast, and add ARIA labels if needed for screen readers.
Click to reveal answer
Which Tailwind class centers text horizontally?
Atext-justify
Btext-left
Ctext-center
Dtext-right
What does the Tailwind class 'p-4' do?
AAdds padding of 1rem on all sides
BAdds margin of 4px on all sides
CAdds padding of 4px on all sides
DAdds margin of 1rem on all sides
Which HTML element is best for wrapping the main content of a page for accessibility?
Adiv
Bmain
Cspan
Dfooter
Why do you need the viewport meta tag in your HTML when using Tailwind?
ATo link external CSS files
BTo add custom fonts
CTo improve SEO ranking
DTo enable responsive design on mobile devices
Which Tailwind class changes text color to blue?
Atext-blue-600
Btext-red-500
Ctext-green-600
Dtext-yellow-400
Describe how to create a simple 'Hello World' component using Tailwind CSS.
Think about how you add style directly in HTML with Tailwind classes.
You got /4 concepts.
    Explain why accessibility and responsive design are important when building your first Tailwind component.
    Consider users with different needs and devices.
    You got /4 concepts.