← Tailwind CSS & Bootstrap learning pathTailwind CSS & Bootstrap · Module 9 of 10
Accessibility and UI quality
Build accessible, consistent interfaces with either framework.
📖 Key ideas
- Use semantic HTML: button, nav, main, label.
- Ensure colour contrast (WCAG AA 4.5:1 for normal text).
- Visible focus styles for keyboard users.
- Add alt text and aria-labels for icon buttons.
- Test with keyboard only and a screen reader.
💡 Real-life example: Accessibility is building ramps along with stairs: everyone can enter.
WCAGWeb accessibility guidelines
Contrast ratioDifference between text and background
aria-labelAccessible name for elements
Semantic HTMLElements that describe meaning